Documentation ¶
Overview ¶
Package gopapi public API for LogDoc go plugins
Index ¶
- Constants
- type ConnectionType
- type LogEntry
- type SinkPlugin
- func (plug *SinkPlugin) Chunk(chunk []byte, source string, tcp bool) []byte
- func (plug *SinkPlugin) Configure(config *hocon.Config, consumer func(entry LogEntry))
- func (plug *SinkPlugin) Init(lookup func(symName string) (plugin.Symbol, error)) error
- func (plug *SinkPlugin) SupportedTypes() []ConnectionType
Constants ¶
View Source
const ( SOURCE_TIME string = "tsrc" PROCESS_ID string = "pid" LOG_SOURCE string = "src" LEVEL string = "lvl" ENTRY string = "msg" RECEIVE_TIME string = "trcv" SOURCE_IP string = "ip" SOURCE_APP_NAME string = "app" )
View Source
const ( DEBUG int = iota INFO LOG WARN ERROR SEVERE PANIC )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionType ¶
type LogEntry ¶
type LogEntry struct { Ip string SrcTime string RcvTime string Pid string Source string Entry string AppName string Level int // contains filtered or unexported fields }
func (*LogEntry) FieldsNames ¶ added in v0.1.6
type SinkPlugin ¶
type SinkPlugin struct {
// contains filtered or unexported fields
}
func (*SinkPlugin) Chunk ¶
func (plug *SinkPlugin) Chunk(chunk []byte, source string, tcp bool) []byte
func (*SinkPlugin) Configure ¶
func (plug *SinkPlugin) Configure(config *hocon.Config, consumer func(entry LogEntry))
func (*SinkPlugin) SupportedTypes ¶
func (plug *SinkPlugin) SupportedTypes() []ConnectionType
Click to show internal directories.
Click to hide internal directories.