json

package
v2.12.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const JsonValue_Call_TypeID = 0x9bbf84153dd4bb60

JsonValue_Call_TypeID is the unique identifier for the type JsonValue_Call.

View Source
const JsonValue_Field_TypeID = 0xc27855d853a937cc

JsonValue_Field_TypeID is the unique identifier for the type JsonValue_Field.

View Source
const JsonValue_TypeID = 0x8825ffaa852cda72

JsonValue_TypeID is the unique identifier for the type JsonValue.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonValue

type JsonValue struct{ capnp.Struct }

func NewJsonValue

func NewJsonValue(s *capnp.Segment) (JsonValue, error)

func NewRootJsonValue

func NewRootJsonValue(s *capnp.Segment) (JsonValue, error)

func ReadRootJsonValue

func ReadRootJsonValue(msg *capnp.Message) (JsonValue, error)

func (JsonValue) Array

func (s JsonValue) Array() (JsonValue_List, error)

func (JsonValue) Boolean

func (s JsonValue) Boolean() bool

func (JsonValue) Call

func (s JsonValue) Call() (JsonValue_Call, error)

func (JsonValue) HasArray

func (s JsonValue) HasArray() bool

func (JsonValue) HasCall

func (s JsonValue) HasCall() bool

func (JsonValue) HasObject

func (s JsonValue) HasObject() bool

func (JsonValue) HasString_

func (s JsonValue) HasString_() bool

func (JsonValue) NewArray

func (s JsonValue) NewArray(n int32) (JsonValue_List, error)

NewArray sets the array field to a newly allocated JsonValue_List, preferring placement in s's segment.

func (JsonValue) NewCall

func (s JsonValue) NewCall() (JsonValue_Call, error)

NewCall sets the call field to a newly allocated JsonValue_Call struct, preferring placement in s's segment.

func (JsonValue) NewObject

func (s JsonValue) NewObject(n int32) (JsonValue_Field_List, error)

NewObject sets the object field to a newly allocated JsonValue_Field_List, preferring placement in s's segment.

func (JsonValue) Number

func (s JsonValue) Number() float64

func (JsonValue) Object

func (s JsonValue) Object() (JsonValue_Field_List, error)

func (JsonValue) SetArray

func (s JsonValue) SetArray(v JsonValue_List) error

func (JsonValue) SetBoolean

func (s JsonValue) SetBoolean(v bool)

func (JsonValue) SetCall

func (s JsonValue) SetCall(v JsonValue_Call) error

func (JsonValue) SetNull

func (s JsonValue) SetNull()

func (JsonValue) SetNumber

func (s JsonValue) SetNumber(v float64)

func (JsonValue) SetObject

func (s JsonValue) SetObject(v JsonValue_Field_List) error

func (JsonValue) SetString_

func (s JsonValue) SetString_(v string) error

func (JsonValue) String

func (s JsonValue) String() string

func (JsonValue) String_

func (s JsonValue) String_() (string, error)

func (JsonValue) String_Bytes

func (s JsonValue) String_Bytes() ([]byte, error)

func (JsonValue) Which

func (s JsonValue) Which() JsonValue_Which

type JsonValue_Call

type JsonValue_Call struct{ capnp.Struct }

func NewJsonValue_Call

func NewJsonValue_Call(s *capnp.Segment) (JsonValue_Call, error)

func NewRootJsonValue_Call

func NewRootJsonValue_Call(s *capnp.Segment) (JsonValue_Call, error)

func ReadRootJsonValue_Call

func ReadRootJsonValue_Call(msg *capnp.Message) (JsonValue_Call, error)

func (JsonValue_Call) Function

func (s JsonValue_Call) Function() (string, error)

func (JsonValue_Call) FunctionBytes

func (s JsonValue_Call) FunctionBytes() ([]byte, error)

func (JsonValue_Call) HasFunction

func (s JsonValue_Call) HasFunction() bool

func (JsonValue_Call) HasParams

func (s JsonValue_Call) HasParams() bool

func (JsonValue_Call) NewParams

func (s JsonValue_Call) NewParams(n int32) (JsonValue_List, error)

NewParams sets the params field to a newly allocated JsonValue_List, preferring placement in s's segment.

func (JsonValue_Call) Params

func (s JsonValue_Call) Params() (JsonValue_List, error)

func (JsonValue_Call) SetFunction

func (s JsonValue_Call) SetFunction(v string) error

func (JsonValue_Call) SetParams

func (s JsonValue_Call) SetParams(v JsonValue_List) error

func (JsonValue_Call) String

func (s JsonValue_Call) String() string

type JsonValue_Call_List

type JsonValue_Call_List struct{ capnp.List }

JsonValue_Call_List is a list of JsonValue_Call.

func NewJsonValue_Call_List

func NewJsonValue_Call_List(s *capnp.Segment, sz int32) (JsonValue_Call_List, error)

NewJsonValue_Call creates a new list of JsonValue_Call.

func (JsonValue_Call_List) At

func (JsonValue_Call_List) Set

type JsonValue_Call_Promise

type JsonValue_Call_Promise struct{ *capnp.Pipeline }

JsonValue_Call_Promise is a wrapper for a JsonValue_Call promised by a client call.

func (JsonValue_Call_Promise) Struct

type JsonValue_Field

type JsonValue_Field struct{ capnp.Struct }

func NewJsonValue_Field

func NewJsonValue_Field(s *capnp.Segment) (JsonValue_Field, error)

func NewRootJsonValue_Field

func NewRootJsonValue_Field(s *capnp.Segment) (JsonValue_Field, error)

func ReadRootJsonValue_Field

func ReadRootJsonValue_Field(msg *capnp.Message) (JsonValue_Field, error)

func (JsonValue_Field) HasName

func (s JsonValue_Field) HasName() bool

func (JsonValue_Field) HasValue

func (s JsonValue_Field) HasValue() bool

func (JsonValue_Field) Name

func (s JsonValue_Field) Name() (string, error)

func (JsonValue_Field) NameBytes

func (s JsonValue_Field) NameBytes() ([]byte, error)

func (JsonValue_Field) NewValue

func (s JsonValue_Field) NewValue() (JsonValue, error)

NewValue sets the value field to a newly allocated JsonValue struct, preferring placement in s's segment.

func (JsonValue_Field) SetName

func (s JsonValue_Field) SetName(v string) error

func (JsonValue_Field) SetValue

func (s JsonValue_Field) SetValue(v JsonValue) error

func (JsonValue_Field) String

func (s JsonValue_Field) String() string

func (JsonValue_Field) Value

func (s JsonValue_Field) Value() (JsonValue, error)

type JsonValue_Field_List

type JsonValue_Field_List struct{ capnp.List }

JsonValue_Field_List is a list of JsonValue_Field.

func NewJsonValue_Field_List

func NewJsonValue_Field_List(s *capnp.Segment, sz int32) (JsonValue_Field_List, error)

NewJsonValue_Field creates a new list of JsonValue_Field.

func (JsonValue_Field_List) At

func (JsonValue_Field_List) Set

type JsonValue_Field_Promise

type JsonValue_Field_Promise struct{ *capnp.Pipeline }

JsonValue_Field_Promise is a wrapper for a JsonValue_Field promised by a client call.

func (JsonValue_Field_Promise) Struct

func (JsonValue_Field_Promise) Value

type JsonValue_List

type JsonValue_List struct{ capnp.List }

JsonValue_List is a list of JsonValue.

func NewJsonValue_List

func NewJsonValue_List(s *capnp.Segment, sz int32) (JsonValue_List, error)

NewJsonValue creates a new list of JsonValue.

func (JsonValue_List) At

func (s JsonValue_List) At(i int) JsonValue

func (JsonValue_List) Set

func (s JsonValue_List) Set(i int, v JsonValue) error

type JsonValue_Promise

type JsonValue_Promise struct{ *capnp.Pipeline }

JsonValue_Promise is a wrapper for a JsonValue promised by a client call.

func (JsonValue_Promise) Call

func (JsonValue_Promise) Struct

func (p JsonValue_Promise) Struct() (JsonValue, error)

type JsonValue_Which

type JsonValue_Which uint16
const (
	JsonValue_Which_null    JsonValue_Which = 0
	JsonValue_Which_boolean JsonValue_Which = 1
	JsonValue_Which_number  JsonValue_Which = 2
	JsonValue_Which_string_ JsonValue_Which = 3
	JsonValue_Which_array   JsonValue_Which = 4
	JsonValue_Which_object  JsonValue_Which = 5
	JsonValue_Which_call    JsonValue_Which = 6
)

func (JsonValue_Which) String

func (w JsonValue_Which) String() string

Jump to

Keyboard shortcuts

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