2018-07-06 09:07:09 -04:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
|
// See LICENSE.txt for license information.
|
|
|
|
|
|
|
|
|
|
package plugin
|
|
|
|
|
|
2018-07-13 10:29:50 -04:00
|
|
|
// Context passes through metadata about the request or hook event.
|
2018-12-05 13:46:08 -05:00
|
|
|
// For requests this is built in app/plugin_requests.go
|
|
|
|
|
// For hooks, app.PluginContext() is called.
|
2018-07-06 09:07:09 -04:00
|
|
|
type Context struct {
|
2018-12-05 13:46:08 -05:00
|
|
|
SessionId string
|
|
|
|
|
RequestId string
|
2021-08-19 04:33:29 -04:00
|
|
|
IPAddress string
|
2018-12-05 13:46:08 -05:00
|
|
|
AcceptLanguage string
|
|
|
|
|
UserAgent string
|
2018-07-06 09:07:09 -04:00
|
|
|
}
|