output

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Influxdb

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

Influxdb output struct

func NewInfluxdb

func NewInfluxdb(options map[string]string) (*Influxdb, error)

NewInfluxdb creates a new output for influxdb

func (*Influxdb) Flush

func (o *Influxdb) Flush(string)

Flush closes this output

func (*Influxdb) StackErr

func (o *Influxdb) StackErr(key string, pre string, content string)

StackErr add a new error

func (*Influxdb) StackOk

func (o *Influxdb) StackOk(key string, pre string, content string)

StackOk add a new success

type Output

type Output interface {
	StackErr(string, string, string)
	StackOk(string, string, string)
	Flush(string)
}

Output struct

func GetOutput

func GetOutput(name string, options map[string]string) (Output, error)

GetOutput returns an output instance

type Stdout

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

Stdout struct

func NewStdout

func NewStdout(options map[string]string) (*Stdout, error)

NewStdout new instance

func (*Stdout) Flush

func (o *Stdout) Flush(key string)

Flush flush output

func (*Stdout) StackErr

func (o *Stdout) StackErr(key string, pre string, content string)

StackErr add a new error

func (*Stdout) StackOk

func (o *Stdout) StackOk(key string, pre string, content string)

StackOk add a new success

Jump to

Keyboard shortcuts

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