Versions in this module Expand all Collapse all v0 v0.0.2 Apr 5, 2023 v0.0.1 Apr 5, 2023 Changes in this version + type CommandHandler struct + func (ch CommandHandler) Handle(p *Plugin, c *plugin.Context, header *model.CommandArgs, args ...string) *model.CommandResponse + type CommandHandlerFunc func(p *Plugin, c *plugin.Context, header *model.CommandArgs, args ...string) *model.CommandResponse + type Config struct + AdminUserIds map[string]struct{} + EnableAdminCommand bool + EnableOnUpdate bool + Links []autolink.Autolink + PluginAdmins string + func (conf *Config) Sorted() *Config + func (conf *Config) ToMap() (map[string]interface{}, error) + type Plugin struct + func New() *Plugin + func (p *Plugin) ExecuteCommand(c *plugin.Context, commandArgs *model.CommandArgs) (*model.CommandResponse, *model.AppError) + func (p *Plugin) GetLinks() []autolink.Autolink + func (p *Plugin) IsAuthorizedAdmin(userID string) (bool, error) + func (p *Plugin) MessageWillBePosted(c *plugin.Context, post *model.Post) (*model.Post, string) + func (p *Plugin) MessageWillBeUpdated(c *plugin.Context, post *model.Post, _ *model.Post) (*model.Post, string) + func (p *Plugin) OnActivate() error + func (p *Plugin) OnConfigurationChange() error + func (p *Plugin) ProcessPost(c *plugin.Context, post *model.Post) (*model.Post, string) + func (p *Plugin) SaveLinks(links []autolink.Autolink) error + func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) + func (p *Plugin) UpdateConfig(f func(conf *Config))