manager

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

func New

func New(
	address string,
	coreStorageAlert,
	coreStorageKV coreStorage.CoreStorage,
	chManager ChManager,
	runner Runner,
	logger *zap.Logger,
) *API

func (*API) Run

func (api *API) Run(ctx context.Context, ctxCancel context.CancelFunc, wg *sync.WaitGroup, ln net.Listener)

type ChManager added in v0.7.0

type ChManager interface {
	Send(a *alert.Alert, text string, options *alert.Options)
}

type Runner added in v0.7.1

type Runner interface {
	RunScript(name string, req *http.Request) error
}

Jump to

Keyboard shortcuts

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