msg

package
v0.0.0-...-eee4cb4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array interface {
	Slice(int64, int64) Source
	Index(int64) Msg
	Len() int64
}

type ArrayBuilder

type ArrayBuilder interface {
	AddElem(func(Builder) (Msg, error)) error
}

type Bool

type Bool interface {
	BoolVal() bool
}

type Builder

type Builder interface {
	IsOwnType(Msg) bool

	Object(func(ObjectBuilder) error) (Msg, error)
	Array(func(ArrayBuilder) error) (Msg, error)
	String(string) (Msg, error)
	Int(int64) (Msg, error)
	Float(float64) (Msg, error)
	Bool(bool) (Msg, error)
	Null() (Msg, error)
}

type Float

type Float interface {
	FloatVal() float64
}

type Int

type Int interface {
	IntVal() int64
}

type Msg

type Msg interface {
	Type() Type

	Object
	Array
	String
	Int
	Float
	Bool
	Null
}

type Null

type Null interface {
	IsNull() bool
}

type Object

type Object interface {
	Member(string) (Msg, bool)
	Keys() []string
}

type ObjectBuilder

type ObjectBuilder interface {
	AddMember(string, func(Builder) (Msg, error)) error
}

type Sink

type Sink func(Msg) error

type Source

type Source func() (msg Msg, more bool, err error)

type String

type String interface {
	StringVal() string
}

type Type

type Type uint16
const (
	TypeObject Type = iota
	TypeArray
	TypeString
	TypeInt
	TypeFloat
	TypeBool
	TypeNull
)

func (Type) String

func (i Type) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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