core

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Check(line string) (checked bool, err error)
}

type Collector

type Collector interface {
	Collect(line string, stream string) (err error)
}

type Counter

type Counter interface {
	Count(line string, steam string) error
}

type Executor

type Executor interface {
	Exec() (Handler, error)
}

type Handler

type Handler interface {
	Pid() int
	Kill() error
	Code() int
	Restart() error
}

type Logic

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

func NewLogic

func NewLogic(operator Operator, checker Checker) *Logic

func (*Logic) Check

func (l *Logic) Check(prev bool, line string) (checked bool, err error)

func (*Logic) Next

func (l *Logic) Next(prev bool) bool

type Notifier

type Notifier interface {
	Notify(code int, err error)
}

type Operator

type Operator uint8
const (
	OperatorUnknown Operator = iota
	OperatorAnd
	OperatorOr
)

Jump to

Keyboard shortcuts

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