generated from mattermost/mattermost-plugin-starter-template
/
constants.go
44 lines (35 loc) · 999 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2019-present Mattermost, Inc. All Rights Reserved.
// See License for license information.
package config
import (
"time"
)
const (
MattermostSessionIDHeader = "Mattermost-Session-Id"
MattermostPluginIDHeader = "Mattermost-Plugin-Id"
MattermostUserIDHeader = "Mattermost-User-Id"
)
// Internal configuration apps.of mattermost-plugin-apps
const (
Repository = "mattermost-plugin-apps"
CommandTrigger = "apps"
ManifestsFile = "manifests.json"
BotUsername = "appsbot"
BotDisplayName = "Mattermost Apps"
BotDescription = "Mattermost Apps Registry and API proxy."
)
const (
// Top-level path(s) for HTTP example apps.
HelloHTTPPath = "/example/hello"
WebSocketEventRefreshBindings = "refresh_bindings"
WebSocketEventPluginEnabled = "plugin_enabled"
WebSocketEventPluginDisabled = "plugin_disabled"
)
const (
RequestTimeout = time.Second * 30
)
const (
PropTeamID = "team_id"
PropChannelID = "channel_id"
PropUserAgent = "user_agent_type"
)