initial commit
This commit is contained in:
parent
fe9c0e7188
commit
189f92c54b
54 changed files with 9238 additions and 0 deletions
24
server/plugin.go
Normal file
24
server/plugin.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/plugin"
|
||||
)
|
||||
|
||||
type Plugin struct {
|
||||
plugin.MattermostPlugin
|
||||
|
||||
// The user to use as part of the sample plugin, created automatically if it does not exist.
|
||||
Username string
|
||||
|
||||
// The channel to use as part of the sample plugin, created for each team automatically if it does not exist.
|
||||
ChannelName string
|
||||
|
||||
// disabled tracks whether or not the plugin has been disabled after activation. It always starts enabled.
|
||||
disabled bool
|
||||
|
||||
// sampleUserId is the id of the user specified above.
|
||||
sampleUserId string
|
||||
|
||||
// sampleChannelIds maps team ids to the channels created for each using the channel name above.
|
||||
sampleChannelIds map[string]string
|
||||
}
|
Reference in a new issue