Documentation ¶
Index ¶
- Constants
- type JsonValue
- func (s JsonValue) Array() (JsonValue_List, error)
- func (s JsonValue) Boolean() bool
- func (s JsonValue) Call() (JsonValue_Call, error)
- func (s JsonValue) HasArray() bool
- func (s JsonValue) HasCall() bool
- func (s JsonValue) HasObject() bool
- func (s JsonValue) HasString_() bool
- func (s JsonValue) NewArray(n int32) (JsonValue_List, error)
- func (s JsonValue) NewCall() (JsonValue_Call, error)
- func (s JsonValue) NewObject(n int32) (JsonValue_Field_List, error)
- func (s JsonValue) Number() float64
- func (s JsonValue) Object() (JsonValue_Field_List, error)
- func (s JsonValue) SetArray(v JsonValue_List) error
- func (s JsonValue) SetBoolean(v bool)
- func (s JsonValue) SetCall(v JsonValue_Call) error
- func (s JsonValue) SetNull()
- func (s JsonValue) SetNumber(v float64)
- func (s JsonValue) SetObject(v JsonValue_Field_List) error
- func (s JsonValue) SetString_(v string) error
- func (s JsonValue) String() string
- func (s JsonValue) String_() (string, error)
- func (s JsonValue) String_Bytes() ([]byte, error)
- func (s JsonValue) Which() JsonValue_Which
- type JsonValue_Call
- func (s JsonValue_Call) Function() (string, error)
- func (s JsonValue_Call) FunctionBytes() ([]byte, error)
- func (s JsonValue_Call) HasFunction() bool
- func (s JsonValue_Call) HasParams() bool
- func (s JsonValue_Call) NewParams(n int32) (JsonValue_List, error)
- func (s JsonValue_Call) Params() (JsonValue_List, error)
- func (s JsonValue_Call) SetFunction(v string) error
- func (s JsonValue_Call) SetParams(v JsonValue_List) error
- func (s JsonValue_Call) String() string
- type JsonValue_Call_List
- type JsonValue_Call_Promise
- type JsonValue_Field
- func (s JsonValue_Field) HasName() bool
- func (s JsonValue_Field) HasValue() bool
- func (s JsonValue_Field) Name() (string, error)
- func (s JsonValue_Field) NameBytes() ([]byte, error)
- func (s JsonValue_Field) NewValue() (JsonValue, error)
- func (s JsonValue_Field) SetName(v string) error
- func (s JsonValue_Field) SetValue(v JsonValue) error
- func (s JsonValue_Field) String() string
- func (s JsonValue_Field) Value() (JsonValue, error)
- type JsonValue_Field_List
- type JsonValue_Field_Promise
- type JsonValue_List
- type JsonValue_Promise
- type JsonValue_Which
Constants ¶
const JsonValue_Call_TypeID = 0x9bbf84153dd4bb60
JsonValue_Call_TypeID is the unique identifier for the type JsonValue_Call.
const JsonValue_Field_TypeID = 0xc27855d853a937cc
JsonValue_Field_TypeID is the unique identifier for the type JsonValue_Field.
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 ¶
func (JsonValue) Array ¶
func (s JsonValue) Array() (JsonValue_List, error)
func (JsonValue) Call ¶
func (s JsonValue) Call() (JsonValue_Call, error)
func (JsonValue) HasString_ ¶
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) Object ¶
func (s JsonValue) Object() (JsonValue_Field_List, error)
func (JsonValue) SetArray ¶
func (s JsonValue) SetArray(v JsonValue_List) error
func (JsonValue) SetBoolean ¶
func (JsonValue) SetCall ¶
func (s JsonValue) SetCall(v JsonValue_Call) error
func (JsonValue) SetObject ¶
func (s JsonValue) SetObject(v JsonValue_Field_List) error
func (JsonValue) SetString_ ¶
func (JsonValue) String_Bytes ¶
func (JsonValue) Which ¶
func (s JsonValue) Which() JsonValue_Which
type JsonValue_Call ¶
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 ¶
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 (s JsonValue_Call_List) At(i int) JsonValue_Call
func (JsonValue_Call_List) Set ¶
func (s JsonValue_Call_List) Set(i int, v JsonValue_Call) error
func (JsonValue_Call_List) String ¶
func (s JsonValue_Call_List) String() string
type JsonValue_Call_Promise ¶
JsonValue_Call_Promise is a wrapper for a JsonValue_Call promised by a client call.
func (JsonValue_Call_Promise) Struct ¶
func (p JsonValue_Call_Promise) Struct() (JsonValue_Call, error)
type JsonValue_Field ¶
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 ¶
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 (s JsonValue_Field_List) At(i int) JsonValue_Field
func (JsonValue_Field_List) Set ¶
func (s JsonValue_Field_List) Set(i int, v JsonValue_Field) error
func (JsonValue_Field_List) String ¶
func (s JsonValue_Field_List) String() string
type JsonValue_Field_Promise ¶
JsonValue_Field_Promise is a wrapper for a JsonValue_Field promised by a client call.
func (JsonValue_Field_Promise) Struct ¶
func (p JsonValue_Field_Promise) Struct() (JsonValue_Field, error)
func (JsonValue_Field_Promise) Value ¶
func (p JsonValue_Field_Promise) Value() JsonValue_Promise
type JsonValue_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) String ¶
func (s JsonValue_List) String() string
type JsonValue_Promise ¶
JsonValue_Promise is a wrapper for a JsonValue promised by a client call.
func (JsonValue_Promise) Call ¶
func (p JsonValue_Promise) Call() JsonValue_Call_Promise
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