alerttest

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEventStates added in v1.7.0

func MakeEventStates(s EventStateSpec) map[string]salert.EventState

Types

type EventStateSpec added in v1.7.0

type EventStateSpec struct {
	N   int
	Mwc int // message word count
	Dwc int // details word count
}

type Exec

type Exec struct {
	Commander command.Commander
	// contains filtered or unexported fields
}

func NewExec

func NewExec() *Exec

func (*Exec) Commands

func (e *Exec) Commands() []*commandtest.Command

type Log

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

func NewLog

func NewLog(p string) *Log

func (*Log) Data

func (l *Log) Data() (d []alert.Data, rErr error)

func (*Log) Mode

func (l *Log) Mode() (os.FileMode, error)

type PostServer

type PostServer struct {
	URL string
	// contains filtered or unexported fields
}

func NewPostServer

func NewPostServer() *PostServer

func (*PostServer) Close

func (s *PostServer) Close()

func (*PostServer) Data

func (s *PostServer) Data() []alert.Data

type TCPServer

type TCPServer struct {
	Addr string
	// contains filtered or unexported fields
}

func NewTCPServer

func NewTCPServer() (*TCPServer, error)

func (*TCPServer) Close

func (s *TCPServer) Close()

func (*TCPServer) Data

func (s *TCPServer) Data() []alert.Data

Jump to

Keyboard shortcuts

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