manager

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 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
}

API represents API manager

func New

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

New creates new API manager

func (*API) Run

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

Run API manager

type ChManager added in v0.7.0

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

ChManager is an interface for channel manager

type Runner added in v0.7.1

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

Runner is an interface for scripts runner

Jump to

Keyboard shortcuts

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