controller

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CommandHelp = `` /* 627-byte string literal not displayed */

CommandHelp - about

Variables

This section is empty.

Functions

func GetHookCommand

func GetHookCommand(pluginAPI plugin.API) (*model.Command, error)

Types

type HookController

type HookController struct {
	// contains filtered or unexported fields
}

func NewHookController

func NewHookController(
	plugin plugin.API,
	botId string,
	calendar *service.Calendar,
	user *service.User,
	sender *service.Sender,
	scheduler *service.Scheduler,
	workspace *service.Workspace) *HookController

func (*HookController) ExecuteCommand

func (hc *HookController) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError)

ExecuteCommand inside plugin

type HttpController

type HttpController struct {
	// contains filtered or unexported fields
}

func NewHttpController

func NewHttpController(
	plugin plugin.API,
	pluginVersion string,
	calendar *service.Calendar,
	user *service.User,
	sender *service.Sender,
	scheduler *service.Scheduler,
	workspace *service.Workspace) *HttpController

func (*HttpController) ServeHTTP

func (hc *HttpController) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL