Documentation ¶
Index ¶
Constants ¶
View Source
const ( JsonArrayCodecId = "json-array" JsonStreamcodecId = "json-stream" TextCodecId = "text" )
Variables ¶
This section is empty.
Functions ¶
func IsValidCodec ¶
func ValidCodecs ¶
func ValidCodecs() []string
Types ¶
type BufioCodec ¶
type BufioCodec struct {
// contains filtered or unexported fields
}
BufioCodec is a basic codec that reads a file line by line and reports the contents line number and which file the line came from
func (*BufioCodec) Err ¶
func (codec *BufioCodec) Err() error
func (*BufioCodec) Next ¶
func (codec *BufioCodec) Next() bool
func (*BufioCodec) Value ¶
func (codec *BufioCodec) Value() common.MapStr
type Codec ¶
type JsonArrayCodec ¶
type JsonArrayCodec struct {
// contains filtered or unexported fields
}
JsonArrayCodec iterates over a serialized JSON array of objects
Inspiration for this decoding technique taken from go's JSON documentation https://golang.org/pkg/encoding/json/#Decoder.Decode
func (*JsonArrayCodec) Err ¶
func (codec *JsonArrayCodec) Err() error
func (*JsonArrayCodec) Next ¶
func (codec *JsonArrayCodec) Next() bool
func (*JsonArrayCodec) Value ¶
func (codec *JsonArrayCodec) Value() common.MapStr
type JsonObject ¶
type JsonObject map[string]interface{}
type JsonStreamCodec ¶
type JsonStreamCodec struct {
// contains filtered or unexported fields
}
func (*JsonStreamCodec) Err ¶
func (codec *JsonStreamCodec) Err() error
func (*JsonStreamCodec) Next ¶
func (codec *JsonStreamCodec) Next() bool
func (*JsonStreamCodec) Value ¶
func (codec *JsonStreamCodec) Value() common.MapStr
Click to show internal directories.
Click to hide internal directories.