plugintest

package
v4.2.2-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: AGPL-3.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

func (*API) CreatePost

func (m *API) CreatePost(post *model.Post) (*model.Post, *model.AppError)

func (*API) GetChannelByName

func (m *API) GetChannelByName(name, teamId string) (*model.Channel, *model.AppError)

func (*API) GetTeamByName

func (m *API) GetTeamByName(name string) (*model.Team, *model.AppError)

func (*API) GetUserByUsername

func (m *API) GetUserByUsername(name string) (*model.User, *model.AppError)

func (*API) LoadPluginConfiguration

func (m *API) LoadPluginConfiguration(dest interface{}) error

type Hooks

type Hooks struct {
	mock.Mock
}

func (*Hooks) OnActivate

func (m *Hooks) OnActivate(api plugin.API) error

func (*Hooks) OnDeactivate

func (m *Hooks) OnDeactivate() error

func (*Hooks) ServeHTTP

func (m *Hooks) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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