lib

package
v0.0.0-...-fdfb50e Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output interface {
	Write(r Record)
}

type Record

type Record struct {
	REALTIME_TIMESTAMP string `json:"__REALTIME_TIMESTAMP"`

	PRIORITY string

	HOSTNAME string `json:"_HOSTNAME"`

	SYSLOG_FACILITY   string
	SYSLOG_IDENTIFIER string

	SYSLOG_PID                string `json:"SYSLOG_PID"`
	PID                       string `json:"_PID"`
	MESSAGE                   string
	SOURCE_REALTIME_TIMESTAMP string `json:"_SOURCE_REALTIME_TIMESTAMP"`
	// contains filtered or unexported fields
}

func (*Record) MarshalJSON

func (j *Record) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Record) MarshalJSONBuf

func (j *Record) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Record) UnmarshalJSON

func (j *Record) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Record) UnmarshalJSONFFLexer

func (j *Record) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

Jump to

Keyboard shortcuts

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