summaryrefslogtreecommitdiffstats
path: root/plugin/hooks.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-11292: clean up plugins GoDoc (#9109)Jesse Hallam2018-07-131-7/+10
| | | | | | | | | | | | | | | | | | | * clean up plugins GoDoc: - eliminate plugin.NewBlankContext() as unnecessary - export ValidIdRegex as a string vs. the less readable var - add/update various documentation strings - hide everything by default, except where used by client plugins or the mattermost-server. The exception to this rule are the `*(Args|Returns)` structs which must be public for go-plugin, but are now prefixed with `Z_` with a warning not to use. - include a top-level example to get plugin authors started This is not a breaking change for existing plugins compiled against plugins-v2. * remove commented out ServeHTTPResponseWriter * update examples to match developer docs * add missing plugin/doc.go license header
* First batch of new plugin api methods (#9022)Daniel Schalla2018-07-061-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | update api mocks Generated new hooks ChannelHasJoinedChannel Implementation User Left Team/Channel Hook; User Joined Team Hook Implementation Update RPC Client and Mocks gofmt go tests fix Add Config API Methods codegne Add Channel Has Been Created Hook Fix ChannelHasBeenCreated hook fix missing context param fix duplicate hooks; remove redudandcy
* MM-10703 Adding blank request context to plugin hooks for future use. (#9043)Christopher Speller2018-07-061-6/+6
| | | | | | | | | | * Adding blank request context to plugin hooks for future use. * Rename RequestContext to Context * Adding context to ServeHTTP and ExecuteCommand * Fixing import cycle in test.
* MM-10702 Moving plugins to use hashicorp go-plugin. (#8978)Christopher Speller2018-06-251-5/+22
| | | | | | * Moving plugins to use hashicorp go-plugin. * Tweaks from feedback.
* MM-10249 Adding plugin ability to intercept posts before they reach the DB. ↵Christopher Speller2018-05-151-0/+33
| | | | | | | | (#8791) * Adding plugin ability to intercept posts before they reach the DB. * s/envoked/invoked/
* Add plugin slash command support (#7941)Chris2017-12-081-0/+6
| | | | | | | | * add plugin slash command support * remove unused string * rebase
* more plugin doc updates (#7767)Chris2017-11-031-4/+4
|
* Add some plugin docs (#7757)Chris2017-11-021-1/+7
| | | | | | | | | | * add some plugin docs * one more comment * spacing * example simplification
* add missing license headers, test to makefile (#7711)Chris2017-10-251-0/+3
|
* PLT-7407: Back-end plugins (#7409)Chris2017-09-111-0/+3
| | | | | | | | | | | | * tie back-end plugins together * fix comment typo * add tests and a bit of polish * tests and polish * add test, don't let backend executable paths escape the plugin directory
* add plugin http handler (#7289)Chris2017-08-281-0/+11
|
* PLT-7407: Back-end plugin mechanism (#7177)Chris2017-08-161-0/+10
* begin backend plugin wip * flesh out rpcplugin. everything done except for minor supervisor stubs * done with basic plugin infrastructure * simplify tests * remove unused test lines