parser

package
v0.0.0-...-6343707 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConverterFunc

type ConverterFunc func(interface{}) ([]byte, error)

Represent the converion function marked as follow:

func(interface{}) ([]byte, error)

type LocalWriter

type LocalWriter interface {
	Write(p []byte) (n int, err error)
	GetBytes() (b []byte, err error)
}

func NewLocalWriter

func NewLocalWriter() LocalWriter

type LogStream

type LogStream interface {
	Open() error
	Close() error
	Write(interface{}) error
}

func New

func New(logType LogStreamType, format common.StreamInOutFormat) (LogStream, error)

type LogStreamType

type LogStreamType int
const (
	StdOutStreamType LogStreamType = 101
	FileStreamType   LogStreamType = 102
	UrlStreamType    LogStreamType = 103
)

func WriterTypeToLogStreamType

func WriterTypeToLogStreamType(wTp common.WriterType) (LogStreamType, error)

type RotatePolicy

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

Jump to

Keyboard shortcuts

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