Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) Clean() error
- func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError)
- func (p *Plugin) GetBotUserID() string
- func (p *Plugin) GetConfig(ref interface{}) error
- func (p *Plugin) GetMattermostConfig() *model.Config
- func (p *Plugin) GetMattermostUser(mattermostUserID string) (*model.User, error)
- func (p *Plugin) GetMattermostUserByUsername(mattermostUsername string) (*model.User, error)
- func (p *Plugin) IsPluginAdmin(mattermostUserID string) (bool, error)
- func (p *Plugin) OnActivate() error
- func (p *Plugin) OnConfigurationChange() error
- func (p *Plugin) SaveConfig(conf config.Mapper)
- func (p *Plugin) SendEphemeralPost(channelID, userID, message string)
- func (p *Plugin) ServeHTTP(pc *plugin.Context, w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { plugin.MattermostPlugin // contains filtered or unexported fields }
func New ¶
func New(build *config.BuildConfig) *Plugin
func (*Plugin) ExecuteCommand ¶
func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError)
func (*Plugin) GetBotUserID ¶
func (*Plugin) GetMattermostConfig ¶
func (*Plugin) GetMattermostUser ¶
func (*Plugin) GetMattermostUserByUsername ¶
func (*Plugin) IsPluginAdmin ¶
IsPluginAdmin returns true if the user is authorized to use the plugin's admin-level APIs/commands.
func (*Plugin) OnActivate ¶
func (*Plugin) OnConfigurationChange ¶
func (*Plugin) SaveConfig ¶
func (*Plugin) SendEphemeralPost ¶
Click to show internal directories.
Click to hide internal directories.