json

package
v2.0.15-canary.2+incom... Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Base64 = uint64(0xd7d879450a253e4b)
View Source
const Discriminator = uint64(0xcfa794e8d19a0162)
View Source
const DiscriminatorOptions_TypeID = 0xc2f8c20c293e5319

DiscriminatorOptions_TypeID is the unique identifier for the type DiscriminatorOptions.

View Source
const Flatten = uint64(0x82d3e852af0336bf)
View Source
const FlattenOptions_TypeID = 0xc4df13257bc2ea61

FlattenOptions_TypeID is the unique identifier for the type FlattenOptions.

View Source
const Hex = uint64(0xf061e22f0ae5c7b5)
View Source
const Name = uint64(0xfa5b1fd61c2e7c3d)
View Source
const Notification = uint64(0xa0a054dea32fd98c)
View Source
const Value_Call_TypeID = 0xa0d9f6eca1c93d48

Value_Call_TypeID is the unique identifier for the type Value_Call.

View Source
const Value_Field_TypeID = 0xe31026e735d69ddf

Value_Field_TypeID is the unique identifier for the type Value_Field.

View Source
const Value_TypeID = 0xa3fa7845f919dd83

Value_TypeID is the unique identifier for the type Value.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type DiscriminatorOptions

type DiscriminatorOptions capnp.Struct

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) 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

type DiscriminatorOptions_Future struct{ *capnp.Future }

DiscriminatorOptions_Future is a wrapper for a DiscriminatorOptions promised by a client call.

func (DiscriminatorOptions_Future) Struct

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

type FlattenOptions capnp.Struct

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

type FlattenOptions_Future struct{ *capnp.Future }

FlattenOptions_Future is a wrapper for a FlattenOptions promised by a client call.

func (FlattenOptions_Future) Struct

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

type Value capnp.Struct

func NewRootValue

func NewRootValue(s *capnp.Segment) (Value, error)

func NewValue

func NewValue(s *capnp.Segment) (Value, error)

func ReadRootValue

func ReadRootValue(msg *capnp.Message) (Value, error)

func (Value) Array

func (s Value) Array() (Value_List, error)

func (Value) Boolean

func (s Value) Boolean() bool

func (Value) Call

func (s Value) Call() (Value_Call, error)

func (Value) DecodeFromPtr

func (Value) DecodeFromPtr(p capnp.Ptr) Value

func (Value) EncodeAsPtr

func (s Value) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Value) HasArray

func (s Value) HasArray() bool

func (Value) HasCall

func (s Value) HasCall() bool

func (Value) HasObject

func (s Value) HasObject() bool

func (Value) HasString_

func (s Value) HasString_() bool

func (Value) IsValid

func (s Value) IsValid() bool

func (Value) Message

func (s Value) Message() *capnp.Message

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) Number

func (s Value) Number() float64

func (Value) Object

func (s Value) Object() (Value_Field_List, error)

func (Value) Segment

func (s Value) Segment() *capnp.Segment

func (Value) SetArray

func (s Value) SetArray(v Value_List) error

func (Value) SetBoolean

func (s Value) SetBoolean(v bool)

func (Value) SetCall

func (s Value) SetCall(v Value_Call) error

func (Value) SetNull

func (s Value) SetNull()

func (Value) SetNumber

func (s Value) SetNumber(v float64)

func (Value) SetObject

func (s Value) SetObject(v Value_Field_List) error

func (Value) SetString_

func (s Value) SetString_(v string) error

func (Value) String

func (s Value) String() string

func (Value) String_

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

func (Value) String_Bytes

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

func (Value) ToPtr

func (s Value) ToPtr() capnp.Ptr

func (Value) Which

func (s Value) Which() Value_Which

type Value_Call

type Value_Call capnp.Struct

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

type Value_Call_Future struct{ *capnp.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

type Value_Field capnp.Struct

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

type Value_Field_Future struct{ *capnp.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

type Value_Future struct{ *capnp.Future }

Value_Future is a wrapper for a Value promised by a client call.

func (Value_Future) Call

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

Jump to

Keyboard shortcuts

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