github.com/trigonella/mattermost-server@v5.11.1+incompatible/plugin/context.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package plugin
     5  
     6  // Context passes through metadata about the request or hook event.
     7  // For requests this is built in app/plugin_requests.go
     8  // For hooks, app.PluginContext() is called.
     9  type Context struct {
    10  	SessionId      string
    11  	RequestId      string
    12  	IpAddress      string
    13  	AcceptLanguage string
    14  	UserAgent      string
    15  }