util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: Apache-2.0 Imports: 12 Imported by: 12

Documentation

Index

Constants

View Source
const EndRelation = "EndRelation"
View Source
const Meta = "Meta"
View Source
const Plus = "PLUS"
View Source
const Raw = "_raw"
View Source
const Relation = "Relation"
View Source
const StartRelation = "StartRelation"
View Source
const Type = "_type"

Variables

This section is empty.

Functions

func CoerceNumber

func CoerceNumber(v interface{}) (float64, error)

func ConnectToReader

func ConnectToReader(operator SumoOperator, reader io.Reader)

func ConnectToStdIn

func ConnectToStdIn(operator SumoOperator)

func CreateEndRelation

func CreateEndRelation() map[string]interface{}

func CreateMeta

func CreateMeta(inp map[string]interface{}) map[string]interface{}

func CreateRelation

func CreateRelation(inp map[string]interface{}) map[string]interface{}

func CreateStartRelation

func CreateStartRelation() map[string]interface{}

func CreateStartRelationMeta

func CreateStartRelationMeta(origin string) map[string]interface{}

func ExtractRaw

func ExtractRaw(inp map[string]interface{}) string

func IsEndRelation

func IsEndRelation(inp map[string]interface{}) bool

func IsMeta

func IsMeta(inp map[string]interface{}) bool

func IsPlus

func IsPlus(inp map[string]interface{}) bool

func IsRelation

func IsRelation(inp map[string]interface{}) bool

func IsStartRelation

func IsStartRelation(inp map[string]interface{}) bool

func SortByField

func SortByField(field string, data Datum)

Types

type By

type By func(p1, p2 *map[string]interface{}) bool

type Datum

type Datum []map[string]interface{}

type JsonWriter

type JsonWriter struct {
	// contains filtered or unexported fields
}

func NewJsonWriter

func NewJsonWriter() *JsonWriter

func (*JsonWriter) Write

func (writer *JsonWriter) Write(inp map[string]interface{})

type ParseError

type ParseError string

func (ParseError) Error

func (e ParseError) Error() string

type RawInputHandler

type RawInputHandler struct {
	// contains filtered or unexported fields
}

func NewRawInputHandler

func NewRawInputHandler(inp io.Writer) *RawInputHandler

func (*RawInputHandler) Flush

func (handler *RawInputHandler) Flush()

func (*RawInputHandler) Process

func (handler *RawInputHandler) Process(inp []byte)

type SumoAggOperator

type SumoAggOperator interface {
	Process(map[string]interface{})
	Flush()
}

type SumoOperator

type SumoOperator interface {
	Process(map[string]interface{})
}

Jump to

Keyboard shortcuts

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