logdoc

package
v0.0.0-...-b51c93b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: ISC Imports: 7 Imported by: 0

Documentation

Overview

Package logdoc contains a MongoDB log format document parser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLogToExtended

func ConvertLogToExtended(input []byte) (map[string]interface{}, error)

ConvertLogToExtended converts MongoDB log line formatted documents to an extended JSON representation

Types

type LogDoc

type LogDoc struct {
	Maps   []int
	Lists  []int
	Fields []string
	Values []interface{}
}

func (*LogDoc) Bindata

func (d *LogDoc) Bindata(value string) mongo_json.BinData

func (*LogDoc) Date

func (d *LogDoc) Date(value string) mongo_json.Date

func (*LogDoc) Init

func (d *LogDoc) Init()

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) Numeric

func (p *LogDoc) Numeric(value string) interface{}

func (*LogDoc) ObjectId

func (d *LogDoc) ObjectId(value string) mongo_json.ObjectId

func (*LogDoc) PopField

func (d *LogDoc) PopField() string

func (*LogDoc) PopList

func (d *LogDoc) PopList()

func (*LogDoc) PopMap

func (d *LogDoc) PopMap()

func (*LogDoc) PopValue

func (d *LogDoc) PopValue() interface{}

func (*LogDoc) PushField

func (d *LogDoc) PushField(field string)

func (*LogDoc) PushList

func (d *LogDoc) PushList()

func (*LogDoc) PushMap

func (d *LogDoc) PushMap()

func (*LogDoc) PushValue

func (d *LogDoc) PushValue(value interface{})

func (*LogDoc) Regex

func (d *LogDoc) Regex(value string) mongo_json.RegExp

func (*LogDoc) SetListValue

func (d *LogDoc) SetListValue()

func (*LogDoc) SetMapValue

func (d *LogDoc) SetMapValue()

func (*LogDoc) Timestamp

func (d *LogDoc) Timestamp(value string) mongo_json.Timestamp

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()

Jump to

Keyboard shortcuts

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