mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* format using `goimports -local github.com/mattermost/mattermost-server/v5 -w` * added goimports lint check to .golangci.yml * format using `goimports -local github.com/mattermost/mattermost-server/v5 -w` for a corner case * make app-layers, *-mocks and store-layers for ci check Co-authored-by: Mahmudul Haque <mahmudulhaque@protonmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
20 lines
460 B
Go
20 lines
460 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package app
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost-server/v5/plugin"
|
|
)
|
|
|
|
func (a *App) PluginContext() *plugin.Context {
|
|
context := &plugin.Context{
|
|
RequestId: a.RequestId(),
|
|
SessionId: a.Session().Id,
|
|
IpAddress: a.IpAddress(),
|
|
AcceptLanguage: a.AcceptLanguage(),
|
|
UserAgent: a.UserAgent(),
|
|
}
|
|
return context
|
|
}
|