Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeadTypeBranch = "branch" HeadTypeTag = "tag" )
Variables ¶
View Source
var CircleCICommandHandler = Handler{ Command: &model.Command{ Trigger: config.CommandPrefix, Description: "Integration with CircleCI.", DisplayName: "CircleCI", AutoComplete: true, Username: config.BotUserName, IconURL: config.BotIconURL, AutocompleteData: &model.AutocompleteData{ Trigger: "circleci", HelpText: "interact with CircleCI right from with Mattermost", SubCommands: []*model.AutocompleteData{ commandConnect.AutocompleteData, commandDisconnect.AutocompleteData, commandSubscribe.AutocompleteData, commandUnsubscribe.AutocompleteData, commandListSubscriptions.AutocompleteData, commandBuild.AutocompleteData, commandRecentBuilds.AutocompleteData, commandProjectSummary.AutocompleteData, commandGetPipelineByNumber.AutocompleteData, commandGetEnvironmentVariables.AutocompleteData, commandRecentWorkflowRuns.AutocompleteData, }, }, }, // contains filtered or unexported fields }
View Source
var Handlers = map[string]Handler{ CircleCICommandHandler.Command.Trigger: CircleCICommandHandler, }
Functions ¶
This section is empty.
Types ¶
type Handler ¶
func (Handler) Handle ¶
func (ch Handler) Handle(context *model.CommandArgs, args ...string) (*model.CommandResponse, *model.AppError)
type HandlerFunc ¶
type HandlerFunc func(context *model.CommandArgs, args ...string) (*model.CommandResponse, *model.AppError)
Click to show internal directories.
Click to hide internal directories.