outputs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadOutputProfiles

func LoadOutputProfiles(profileConfig string) ([]types.Profile, error)

func OvflwToOrder

func OvflwToOrder(sig types.SignalOccurence, prof types.Profile) (*types.BanOrder, error, error)

Transform an overflow (SignalOccurence) and a Profile into a BanOrder

Types

type Output

type Output struct {
	API *cwapi.ApiCtx
	// contains filtered or unexported fields
}

func NewOutput

func NewOutput(config *OutputFactory, isDaemon bool) (*Output, error)

func (*Output) Delete

func (o *Output) Delete(target string) (int, error)

func (*Output) DeleteAll

func (o *Output) DeleteAll() error

func (*Output) Flush

func (o *Output) Flush() error

func (*Output) FlushAll

func (o *Output) FlushAll()

func (*Output) InitAPI

func (o *Output) InitAPI(config map[string]string) error

func (*Output) Insert

func (o *Output) Insert(sig types.SignalOccurence) error

func (*Output) LoadAPIConfig

func (o *Output) LoadAPIConfig(configFile string) error

func (*Output) ProcessOutput

func (o *Output) ProcessOutput(sig types.SignalOccurence, profiles []types.Profile) error

func (*Output) ReadAT

func (o *Output) ReadAT(timeAT time.Time) ([]map[string]string, error)

type OutputFactory

type OutputFactory struct {
	BackendFolder string `yaml:"backend"`
}

Jump to

Keyboard shortcuts

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