Versions in this module Expand all Collapse all v0 v0.0.3 Aug 19, 2022 v0.0.2 Aug 15, 2022 Changes in this version + type AccessControl struct + ChannelID []string + ChannelName []string + TeamID []string + TeamName []string + UserID []string + UserName []string + func (a *AccessControl) IsEmpty() bool + type Color struct + Color string + Status string + type Command struct + Command string + CommandHandler func(ctx context.Context, mmCommand *MMSlashCommand, args map[string]string) (*CommandResponse, error) + Description string + DialogHandler func(ctx context.Context, submission *DialogSubmission, args map[string]string) (*CommandResponse, error) + Name string + Plugin string + Usage string + type CommandResponse struct + Dialog Dialog + Message Message + Type CommandResponseType + type CommandResponseType string + const CommandResponseTypeDialog + const CommandResponseTypeEphemeral + const CommandResponseTypeInChannel + type Dialog struct + CallbackURL string + Elements []DialogElement + MMHookURL string + Text string + Title string + URL string + type DialogElement struct + Default string + DisplayName string + HelpText string + MaxLength int + MinLength int + Name string + Optional bool + Options []*DialogOption + Placeholder string + SubType string + Type string + type DialogOption struct + Text string + Value string + type DialogSubmission struct + CallbackID string + Canceled bool + ChannelID string + State string + Submission map[string]string + TeamID string + Type string + UserID string + func ParseDialogSubmission(r *http.Request) (*DialogSubmission, error) + type MMSlashCommand struct + ChannelID string + ChannelName string + Command string + ResponseURL string + TeamID string + TeamName string + Text string + Token string + TriggerID string + UserID string + Username string + func ParseMattermostSlashCommand(r *http.Request) (*MMSlashCommand, error) + type Message struct + Body string + Color string + ResponseType string + Title string