blob: 28a762a1ad40fbdfd29450f3216c394f0df81faf (
plain)
1
2
3
4
5
6
7
8
9
10
|
package plugin
type Hooks interface {
// OnActivate is invoked when the plugin is activated.
OnActivate(API) error
// OnDeactivate is invoked when the plugin is deactivated. This is the plugin's last chance to
// use the API, and the plugin will be terminated shortly after this invocation.
OnDeactivate() error
}
|