generated from mattermost/mattermost-plugin-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 29
/
const.go
54 lines (47 loc) · 1.72 KB
/
const.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
45
46
47
48
49
50
51
52
53
54
package main
const (
ManifestPath = "/manifest.json"
StaticPath = "/static"
BindingsPath = "/bindings"
InstallPath = "/install"
NotifyPath = "/notify"
// Commands
CreateEmbedded = "/create-embedded"
Subscribe = "/subscribe"
Unsubscribe = "/unsubscribe"
NumBindingsPath = "/num_bindings"
// Submit responses
OK = "/ok"
OKEmpty = "/empty"
NavigateInternal = "/nav/internal"
NavigateExternal = "/nav/external"
// Form responses
FormSimple = "/forms/simple"
FormSimpleSource = "/forms/simpleSource"
FormMarkdownError = "/forms/markdownError"
FormMarkdownErrorMissingField = "/forms/markdownMissingError"
FormRefresh = "/forms/refresh"
FormFull = "/forms/full"
FormLookup = "/forms/lookup"
FormFullSource = "/forms/fullSource"
FormFullReadonly = "/forms/fullDisabled"
FormMultiselect = "/forms/multiselect"
FormButtons = "/forms/buttons"
// Lookup responses
Lookup = "/lookups/ok"
LookupMultiword = "/lookups/multiword"
LookupEmpty = "/lookups/empty"
// Error responses
ErrorDefault = "/errors/default"
ErrorEmpty = "/errors/empty"
ErrorMarkdownForm = "/errors/markdownform"
ErrorMarkdownFormMissingField = "/errors/markdownformMissingField"
Error404 = "/errors/foo"
Error500 = "/errors/internal"
// Invalid responses
InvalidHTML = "/invalid/html"
InvalidUnknownType = "/invalid/unknown-type"
InvalidLookup = "/invalid/lookup"
InvalidForm = "/invalid/form"
InvalidNavigate = "/invalid/nav"
)