restart

package
v0.0.0-...-3d8a0e0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin は再起動コマンドを受け付けるプラグインです

func New

func New() *Plugin

New でプラグインを生成します。

func (*Plugin) Help

func (p *Plugin) Help() string

Help でヘルプメッセージを返します。

func (*Plugin) Serve

func (p *Plugin) Serve(ctx context.Context, event slack.RTMEvent) error

Serve で再起動コマンドを受け付けて再起動します。

func (*Plugin) Start

func (p *Plugin) Start(client *slack.Client) error

Start でプラグインを有効化します。

func (*Plugin) Stop

func (p *Plugin) Stop() error

Stop でプラグインの終了処理をします。

Jump to

Keyboard shortcuts

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