Documentation ¶
Overview ¶
Package logdoc contains a MongoDB log format document parser
Index ¶
- func ConvertLogToExtended(input []byte) (map[string]interface{}, error)
- type LogDoc
- func (d *LogDoc) Bindata(value string) mongo_json.BinData
- func (d *LogDoc) Date(value string) mongo_json.Date
- func (d *LogDoc) Init()
- func (d *LogDoc) Maxkey() mongo_json.MaxKey
- func (d *LogDoc) Minkey() mongo_json.MinKey
- func (d *LogDoc) Numberlong(value string) mongo_json.NumberLong
- func (p *LogDoc) Numeric(value string) interface{}
- func (d *LogDoc) ObjectId(value string) mongo_json.ObjectId
- func (d *LogDoc) PopField() string
- func (d *LogDoc) PopList()
- func (d *LogDoc) PopMap()
- func (d *LogDoc) PopValue() interface{}
- func (d *LogDoc) PushField(field string)
- func (d *LogDoc) PushList()
- func (d *LogDoc) PushMap()
- func (d *LogDoc) PushValue(value interface{})
- func (d *LogDoc) Regex(value string) mongo_json.RegExp
- func (d *LogDoc) SetListValue()
- func (d *LogDoc) SetMapValue()
- func (d *LogDoc) Timestamp(value string) mongo_json.Timestamp
- func (d *LogDoc) Undefined() mongo_json.Undefined
- type LogDocParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLogToExtended ¶
ConvertLogToExtended converts MongoDB log line formatted documents to an extended JSON representation
Types ¶
type LogDoc ¶
func (*LogDoc) Maxkey ¶
func (d *LogDoc) Maxkey() mongo_json.MaxKey
func (*LogDoc) Minkey ¶
func (d *LogDoc) Minkey() mongo_json.MinKey
func (*LogDoc) Numberlong ¶
func (d *LogDoc) Numberlong(value string) mongo_json.NumberLong
func (*LogDoc) SetListValue ¶
func (d *LogDoc) SetListValue()
func (*LogDoc) SetMapValue ¶
func (d *LogDoc) SetMapValue()
func (*LogDoc) Undefined ¶
func (d *LogDoc) Undefined() mongo_json.Undefined
type LogDocParser ¶
type LogDocParser struct { LogDoc Buffer string Parse func(rule ...int) error Reset func() // contains filtered or unexported fields }
func (*LogDocParser) Execute ¶
func (p *LogDocParser) Execute()
func (*LogDocParser) Highlighter ¶
func (p *LogDocParser) Highlighter()
func (*LogDocParser) Init ¶
func (p *LogDocParser) Init()
func (*LogDocParser) PrintSyntaxTree ¶
func (p *LogDocParser) PrintSyntaxTree()
Click to show internal directories.
Click to hide internal directories.