Documentation ¶
Index ¶
- Constants
- func RegisterSchema(reg *schemas.Registry)
- type DiscriminatorOptions
- func (DiscriminatorOptions) DecodeFromPtr(p capnp.Ptr) DiscriminatorOptions
- func (s DiscriminatorOptions) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s DiscriminatorOptions) HasName() bool
- func (s DiscriminatorOptions) HasValueName() bool
- func (s DiscriminatorOptions) IsValid() bool
- func (s DiscriminatorOptions) Message() *capnp.Message
- func (s DiscriminatorOptions) Name() (string, error)
- func (s DiscriminatorOptions) NameBytes() ([]byte, error)
- func (s DiscriminatorOptions) Segment() *capnp.Segment
- func (s DiscriminatorOptions) SetName(v string) error
- func (s DiscriminatorOptions) SetValueName(v string) error
- func (s DiscriminatorOptions) String() string
- func (s DiscriminatorOptions) ToPtr() capnp.Ptr
- func (s DiscriminatorOptions) ValueName() (string, error)
- func (s DiscriminatorOptions) ValueNameBytes() ([]byte, error)
- type DiscriminatorOptions_Future
- type DiscriminatorOptions_List
- type FlattenOptions
- func (FlattenOptions) DecodeFromPtr(p capnp.Ptr) FlattenOptions
- func (s FlattenOptions) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s FlattenOptions) HasPrefix() bool
- func (s FlattenOptions) IsValid() bool
- func (s FlattenOptions) Message() *capnp.Message
- func (s FlattenOptions) Prefix() (string, error)
- func (s FlattenOptions) PrefixBytes() ([]byte, error)
- func (s FlattenOptions) Segment() *capnp.Segment
- func (s FlattenOptions) SetPrefix(v string) error
- func (s FlattenOptions) String() string
- func (s FlattenOptions) ToPtr() capnp.Ptr
- type FlattenOptions_Future
- type FlattenOptions_List
- type Value
- func (s Value) Array() (Value_List, error)
- func (s Value) Boolean() bool
- func (s Value) Call() (Value_Call, error)
- func (Value) DecodeFromPtr(p capnp.Ptr) Value
- func (s Value) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Value) HasArray() bool
- func (s Value) HasCall() bool
- func (s Value) HasObject() bool
- func (s Value) HasString_() bool
- func (s Value) IsValid() bool
- func (s Value) Message() *capnp.Message
- func (s Value) NewArray(n int32) (Value_List, error)
- func (s Value) NewCall() (Value_Call, error)
- func (s Value) NewObject(n int32) (Value_Field_List, error)
- func (s Value) Number() float64
- func (s Value) Object() (Value_Field_List, error)
- func (s Value) Segment() *capnp.Segment
- func (s Value) SetArray(v Value_List) error
- func (s Value) SetBoolean(v bool)
- func (s Value) SetCall(v Value_Call) error
- func (s Value) SetNull()
- func (s Value) SetNumber(v float64)
- func (s Value) SetObject(v Value_Field_List) error
- func (s Value) SetString_(v string) error
- func (s Value) String() string
- func (s Value) String_() (string, error)
- func (s Value) String_Bytes() ([]byte, error)
- func (s Value) ToPtr() capnp.Ptr
- func (s Value) Which() Value_Which
- type Value_Call
- func (Value_Call) DecodeFromPtr(p capnp.Ptr) Value_Call
- func (s Value_Call) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Value_Call) Function() (string, error)
- func (s Value_Call) FunctionBytes() ([]byte, error)
- func (s Value_Call) HasFunction() bool
- func (s Value_Call) HasParams() bool
- func (s Value_Call) IsValid() bool
- func (s Value_Call) Message() *capnp.Message
- func (s Value_Call) NewParams(n int32) (Value_List, error)
- func (s Value_Call) Params() (Value_List, error)
- func (s Value_Call) Segment() *capnp.Segment
- func (s Value_Call) SetFunction(v string) error
- func (s Value_Call) SetParams(v Value_List) error
- func (s Value_Call) String() string
- func (s Value_Call) ToPtr() capnp.Ptr
- type Value_Call_Future
- type Value_Call_List
- type Value_Field
- func (Value_Field) DecodeFromPtr(p capnp.Ptr) Value_Field
- func (s Value_Field) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Value_Field) HasName() bool
- func (s Value_Field) HasValue() bool
- func (s Value_Field) IsValid() bool
- func (s Value_Field) Message() *capnp.Message
- func (s Value_Field) Name() (string, error)
- func (s Value_Field) NameBytes() ([]byte, error)
- func (s Value_Field) NewValue() (Value, error)
- func (s Value_Field) Segment() *capnp.Segment
- func (s Value_Field) SetName(v string) error
- func (s Value_Field) SetValue(v Value) error
- func (s Value_Field) String() string
- func (s Value_Field) ToPtr() capnp.Ptr
- func (s Value_Field) Value() (Value, error)
- type Value_Field_Future
- type Value_Field_List
- type Value_Future
- type Value_List
- type Value_Which
Constants ¶
const Base64 = uint64(0xd7d879450a253e4b)
const Discriminator = uint64(0xcfa794e8d19a0162)
const DiscriminatorOptions_TypeID = 0xc2f8c20c293e5319
DiscriminatorOptions_TypeID is the unique identifier for the type DiscriminatorOptions.
const Flatten = uint64(0x82d3e852af0336bf)
const FlattenOptions_TypeID = 0xc4df13257bc2ea61
FlattenOptions_TypeID is the unique identifier for the type FlattenOptions.
const Hex = uint64(0xf061e22f0ae5c7b5)
const Name = uint64(0xfa5b1fd61c2e7c3d)
const Notification = uint64(0xa0a054dea32fd98c)
const Value_Call_TypeID = 0xa0d9f6eca1c93d48
Value_Call_TypeID is the unique identifier for the type Value_Call.
const Value_Field_TypeID = 0xe31026e735d69ddf
Value_Field_TypeID is the unique identifier for the type Value_Field.
const Value_TypeID = 0xa3fa7845f919dd83
Value_TypeID is the unique identifier for the type Value.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
Types ¶
type DiscriminatorOptions ¶
func NewDiscriminatorOptions ¶
func NewDiscriminatorOptions(s *capnp.Segment) (DiscriminatorOptions, error)
func NewRootDiscriminatorOptions ¶
func NewRootDiscriminatorOptions(s *capnp.Segment) (DiscriminatorOptions, error)
func ReadRootDiscriminatorOptions ¶
func ReadRootDiscriminatorOptions(msg *capnp.Message) (DiscriminatorOptions, error)
func (DiscriminatorOptions) DecodeFromPtr ¶
func (DiscriminatorOptions) DecodeFromPtr(p capnp.Ptr) DiscriminatorOptions
func (DiscriminatorOptions) EncodeAsPtr ¶
func (s DiscriminatorOptions) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (DiscriminatorOptions) HasName ¶
func (s DiscriminatorOptions) HasName() bool
func (DiscriminatorOptions) HasValueName ¶
func (s DiscriminatorOptions) HasValueName() bool
func (DiscriminatorOptions) IsValid ¶
func (s DiscriminatorOptions) IsValid() bool
func (DiscriminatorOptions) Message ¶
func (s DiscriminatorOptions) Message() *capnp.Message
func (DiscriminatorOptions) Name ¶
func (s DiscriminatorOptions) Name() (string, error)
func (DiscriminatorOptions) NameBytes ¶
func (s DiscriminatorOptions) NameBytes() ([]byte, error)
func (DiscriminatorOptions) Segment ¶
func (s DiscriminatorOptions) Segment() *capnp.Segment
func (DiscriminatorOptions) SetName ¶
func (s DiscriminatorOptions) SetName(v string) error
func (DiscriminatorOptions) SetValueName ¶
func (s DiscriminatorOptions) SetValueName(v string) error
func (DiscriminatorOptions) String ¶
func (s DiscriminatorOptions) String() string
func (DiscriminatorOptions) ToPtr ¶
func (s DiscriminatorOptions) ToPtr() capnp.Ptr
func (DiscriminatorOptions) ValueName ¶
func (s DiscriminatorOptions) ValueName() (string, error)
func (DiscriminatorOptions) ValueNameBytes ¶
func (s DiscriminatorOptions) ValueNameBytes() ([]byte, error)
type DiscriminatorOptions_Future ¶
DiscriminatorOptions_Future is a wrapper for a DiscriminatorOptions promised by a client call.
func (DiscriminatorOptions_Future) Struct ¶
func (f DiscriminatorOptions_Future) Struct() (DiscriminatorOptions, error)
type DiscriminatorOptions_List ¶
type DiscriminatorOptions_List = capnp.StructList[DiscriminatorOptions]
DiscriminatorOptions_List is a list of DiscriminatorOptions.
func NewDiscriminatorOptions_List ¶
func NewDiscriminatorOptions_List(s *capnp.Segment, sz int32) (DiscriminatorOptions_List, error)
NewDiscriminatorOptions creates a new list of DiscriminatorOptions.
type FlattenOptions ¶
func NewFlattenOptions ¶
func NewFlattenOptions(s *capnp.Segment) (FlattenOptions, error)
func NewRootFlattenOptions ¶
func NewRootFlattenOptions(s *capnp.Segment) (FlattenOptions, error)
func ReadRootFlattenOptions ¶
func ReadRootFlattenOptions(msg *capnp.Message) (FlattenOptions, error)
func (FlattenOptions) DecodeFromPtr ¶
func (FlattenOptions) DecodeFromPtr(p capnp.Ptr) FlattenOptions
func (FlattenOptions) EncodeAsPtr ¶
func (s FlattenOptions) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (FlattenOptions) HasPrefix ¶
func (s FlattenOptions) HasPrefix() bool
func (FlattenOptions) IsValid ¶
func (s FlattenOptions) IsValid() bool
func (FlattenOptions) Message ¶
func (s FlattenOptions) Message() *capnp.Message
func (FlattenOptions) Prefix ¶
func (s FlattenOptions) Prefix() (string, error)
func (FlattenOptions) PrefixBytes ¶
func (s FlattenOptions) PrefixBytes() ([]byte, error)
func (FlattenOptions) Segment ¶
func (s FlattenOptions) Segment() *capnp.Segment
func (FlattenOptions) SetPrefix ¶
func (s FlattenOptions) SetPrefix(v string) error
func (FlattenOptions) String ¶
func (s FlattenOptions) String() string
func (FlattenOptions) ToPtr ¶
func (s FlattenOptions) ToPtr() capnp.Ptr
type FlattenOptions_Future ¶
FlattenOptions_Future is a wrapper for a FlattenOptions promised by a client call.
func (FlattenOptions_Future) Struct ¶
func (f FlattenOptions_Future) Struct() (FlattenOptions, error)
type FlattenOptions_List ¶
type FlattenOptions_List = capnp.StructList[FlattenOptions]
FlattenOptions_List is a list of FlattenOptions.
func NewFlattenOptions_List ¶
func NewFlattenOptions_List(s *capnp.Segment, sz int32) (FlattenOptions_List, error)
NewFlattenOptions creates a new list of FlattenOptions.
type Value ¶
func (Value) Array ¶
func (s Value) Array() (Value_List, error)
func (Value) Call ¶
func (s Value) Call() (Value_Call, error)
func (Value) HasString_ ¶
func (Value) NewArray ¶
func (s Value) NewArray(n int32) (Value_List, error)
NewArray sets the array field to a newly allocated Value_List, preferring placement in s's segment.
func (Value) NewCall ¶
func (s Value) NewCall() (Value_Call, error)
NewCall sets the call field to a newly allocated Value_Call struct, preferring placement in s's segment.
func (Value) NewObject ¶
func (s Value) NewObject(n int32) (Value_Field_List, error)
NewObject sets the object field to a newly allocated Value_Field_List, preferring placement in s's segment.
func (Value) Object ¶
func (s Value) Object() (Value_Field_List, error)
func (Value) SetArray ¶
func (s Value) SetArray(v Value_List) error
func (Value) SetBoolean ¶
func (Value) SetCall ¶
func (s Value) SetCall(v Value_Call) error
func (Value) SetObject ¶
func (s Value) SetObject(v Value_Field_List) error
func (Value) SetString_ ¶
func (Value) String_Bytes ¶
func (Value) Which ¶
func (s Value) Which() Value_Which
type Value_Call ¶
func NewRootValue_Call ¶
func NewRootValue_Call(s *capnp.Segment) (Value_Call, error)
func NewValue_Call ¶
func NewValue_Call(s *capnp.Segment) (Value_Call, error)
func ReadRootValue_Call ¶
func ReadRootValue_Call(msg *capnp.Message) (Value_Call, error)
func (Value_Call) DecodeFromPtr ¶
func (Value_Call) DecodeFromPtr(p capnp.Ptr) Value_Call
func (Value_Call) EncodeAsPtr ¶
func (s Value_Call) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Value_Call) Function ¶
func (s Value_Call) Function() (string, error)
func (Value_Call) FunctionBytes ¶
func (s Value_Call) FunctionBytes() ([]byte, error)
func (Value_Call) HasFunction ¶
func (s Value_Call) HasFunction() bool
func (Value_Call) HasParams ¶
func (s Value_Call) HasParams() bool
func (Value_Call) IsValid ¶
func (s Value_Call) IsValid() bool
func (Value_Call) Message ¶
func (s Value_Call) Message() *capnp.Message
func (Value_Call) NewParams ¶
func (s Value_Call) NewParams(n int32) (Value_List, error)
NewParams sets the params field to a newly allocated Value_List, preferring placement in s's segment.
func (Value_Call) Params ¶
func (s Value_Call) Params() (Value_List, error)
func (Value_Call) Segment ¶
func (s Value_Call) Segment() *capnp.Segment
func (Value_Call) SetFunction ¶
func (s Value_Call) SetFunction(v string) error
func (Value_Call) SetParams ¶
func (s Value_Call) SetParams(v Value_List) error
func (Value_Call) String ¶
func (s Value_Call) String() string
func (Value_Call) ToPtr ¶
func (s Value_Call) ToPtr() capnp.Ptr
type Value_Call_Future ¶
Value_Call_Future is a wrapper for a Value_Call promised by a client call.
func (Value_Call_Future) Struct ¶
func (f Value_Call_Future) Struct() (Value_Call, error)
type Value_Call_List ¶
type Value_Call_List = capnp.StructList[Value_Call]
Value_Call_List is a list of Value_Call.
func NewValue_Call_List ¶
func NewValue_Call_List(s *capnp.Segment, sz int32) (Value_Call_List, error)
NewValue_Call creates a new list of Value_Call.
type Value_Field ¶
func NewRootValue_Field ¶
func NewRootValue_Field(s *capnp.Segment) (Value_Field, error)
func NewValue_Field ¶
func NewValue_Field(s *capnp.Segment) (Value_Field, error)
func ReadRootValue_Field ¶
func ReadRootValue_Field(msg *capnp.Message) (Value_Field, error)
func (Value_Field) DecodeFromPtr ¶
func (Value_Field) DecodeFromPtr(p capnp.Ptr) Value_Field
func (Value_Field) EncodeAsPtr ¶
func (s Value_Field) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Value_Field) HasName ¶
func (s Value_Field) HasName() bool
func (Value_Field) HasValue ¶
func (s Value_Field) HasValue() bool
func (Value_Field) IsValid ¶
func (s Value_Field) IsValid() bool
func (Value_Field) Message ¶
func (s Value_Field) Message() *capnp.Message
func (Value_Field) Name ¶
func (s Value_Field) Name() (string, error)
func (Value_Field) NameBytes ¶
func (s Value_Field) NameBytes() ([]byte, error)
func (Value_Field) NewValue ¶
func (s Value_Field) NewValue() (Value, error)
NewValue sets the value field to a newly allocated Value struct, preferring placement in s's segment.
func (Value_Field) Segment ¶
func (s Value_Field) Segment() *capnp.Segment
func (Value_Field) SetName ¶
func (s Value_Field) SetName(v string) error
func (Value_Field) SetValue ¶
func (s Value_Field) SetValue(v Value) error
func (Value_Field) String ¶
func (s Value_Field) String() string
func (Value_Field) ToPtr ¶
func (s Value_Field) ToPtr() capnp.Ptr
func (Value_Field) Value ¶
func (s Value_Field) Value() (Value, error)
type Value_Field_Future ¶
Value_Field_Future is a wrapper for a Value_Field promised by a client call.
func (Value_Field_Future) Struct ¶
func (f Value_Field_Future) Struct() (Value_Field, error)
func (Value_Field_Future) Value ¶
func (p Value_Field_Future) Value() Value_Future
type Value_Field_List ¶
type Value_Field_List = capnp.StructList[Value_Field]
Value_Field_List is a list of Value_Field.
func NewValue_Field_List ¶
func NewValue_Field_List(s *capnp.Segment, sz int32) (Value_Field_List, error)
NewValue_Field creates a new list of Value_Field.
type Value_Future ¶
Value_Future is a wrapper for a Value promised by a client call.
func (Value_Future) Call ¶
func (p Value_Future) Call() Value_Call_Future
func (Value_Future) Struct ¶
func (f Value_Future) Struct() (Value, error)
type Value_List ¶
type Value_List = capnp.StructList[Value]
Value_List is a list of Value.
func NewValue_List ¶
func NewValue_List(s *capnp.Segment, sz int32) (Value_List, error)
NewValue creates a new list of Value.
type Value_Which ¶
type Value_Which uint16
const ( Value_Which_null Value_Which = 0 Value_Which_boolean Value_Which = 1 Value_Which_number Value_Which = 2 Value_Which_string_ Value_Which = 3 Value_Which_array Value_Which = 4 Value_Which_object Value_Which = 5 Value_Which_call Value_Which = 6 )
func (Value_Which) String ¶
func (w Value_Which) String() string