Documentation ¶
Index ¶
- Constants
- func Identifiable_Methods(methods []server.Method, s Identifiable_Server) []server.Method
- func Identifiable_NewServer(s Identifiable_Server) *server.Server
- func RegisterSchema(reg *schemas.Registry)
- type Date
- func (s Date) Day() uint8
- func (Date) DecodeFromPtr(p capnp.Ptr) Date
- func (s Date) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Date) IsValid() bool
- func (s Date) Message() *capnp.Message
- func (s Date) Month() uint8
- func (s Date) Segment() *capnp.Segment
- func (s Date) SetDay(v uint8)
- func (s Date) SetMonth(v uint8)
- func (s Date) SetYear(v int16)
- func (s Date) String() string
- func (s Date) ToPtr() capnp.Ptr
- func (s Date) Year() int16
- type Date_Future
- type Date_List
- type IdInformation
- func (IdInformation) DecodeFromPtr(p capnp.Ptr) IdInformation
- func (s IdInformation) Description() (string, error)
- func (s IdInformation) DescriptionBytes() ([]byte, error)
- func (s IdInformation) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s IdInformation) HasDescription() bool
- func (s IdInformation) HasId() bool
- func (s IdInformation) HasName() bool
- func (s IdInformation) Id() (string, error)
- func (s IdInformation) IdBytes() ([]byte, error)
- func (s IdInformation) IsValid() bool
- func (s IdInformation) Message() *capnp.Message
- func (s IdInformation) Name() (string, error)
- func (s IdInformation) NameBytes() ([]byte, error)
- func (s IdInformation) Segment() *capnp.Segment
- func (s IdInformation) SetDescription(v string) error
- func (s IdInformation) SetId(v string) error
- func (s IdInformation) SetName(v string) error
- func (s IdInformation) String() string
- func (s IdInformation) ToPtr() capnp.Ptr
- type IdInformation_Future
- type IdInformation_List
- type Identifiable
- func (c Identifiable) AddRef() Identifiable
- func (Identifiable) DecodeFromPtr(p capnp.Ptr) Identifiable
- func (c Identifiable) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Identifiable) GetFlowLimiter() fc.FlowLimiter
- func (c Identifiable) Info(ctx context.Context, params func(Identifiable_info_Params) error) (IdInformation_Future, capnp.ReleaseFunc)
- func (c Identifiable) IsSame(other Identifiable) bool
- func (c Identifiable) IsValid() bool
- func (c Identifiable) Release()
- func (c Identifiable) Resolve(ctx context.Context) error
- func (c Identifiable) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Identifiable) String() string
- func (c Identifiable) WaitStreaming() error
- type Identifiable_List
- type Identifiable_Server
- type Identifiable_info
- type Identifiable_info_Params
- func (Identifiable_info_Params) DecodeFromPtr(p capnp.Ptr) Identifiable_info_Params
- func (s Identifiable_info_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Identifiable_info_Params) IsValid() bool
- func (s Identifiable_info_Params) Message() *capnp.Message
- func (s Identifiable_info_Params) Segment() *capnp.Segment
- func (s Identifiable_info_Params) String() string
- func (s Identifiable_info_Params) ToPtr() capnp.Ptr
- type Identifiable_info_Params_Future
- type Identifiable_info_Params_List
- type Pair
- func (Pair) DecodeFromPtr(p capnp.Ptr) Pair
- func (s Pair) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Pair) Fst() (capnp.Ptr, error)
- func (s Pair) HasFst() bool
- func (s Pair) HasSnd() bool
- func (s Pair) IsValid() bool
- func (s Pair) Message() *capnp.Message
- func (s Pair) Segment() *capnp.Segment
- func (s Pair) SetFst(v capnp.Ptr) error
- func (s Pair) SetSnd(v capnp.Ptr) error
- func (s Pair) Snd() (capnp.Ptr, error)
- func (s Pair) String() string
- func (s Pair) ToPtr() capnp.Ptr
- type Pair_Future
- type Pair_List
- type StructuredText
- func (StructuredText) DecodeFromPtr(p capnp.Ptr) StructuredText
- func (s StructuredText) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s StructuredText) HasValue() bool
- func (s StructuredText) IsValid() bool
- func (s StructuredText) Message() *capnp.Message
- func (s StructuredText) Segment() *capnp.Segment
- func (s StructuredText) SetValue(v string) error
- func (s StructuredText) String() string
- func (s StructuredText) Structure() StructuredText_structure
- func (s StructuredText) ToPtr() capnp.Ptr
- func (s StructuredText) Value() (string, error)
- func (s StructuredText) ValueBytes() ([]byte, error)
- type StructuredText_Future
- type StructuredText_List
- type StructuredText_structure
- func (s StructuredText_structure) IsValid() bool
- func (s StructuredText_structure) Message() *capnp.Message
- func (s StructuredText_structure) Segment() *capnp.Segment
- func (s StructuredText_structure) SetJson()
- func (s StructuredText_structure) SetNone()
- func (s StructuredText_structure) SetXml()
- func (s StructuredText_structure) Which() StructuredText_structure_Which
- type StructuredText_structure_Future
- type StructuredText_structure_Which
- type Value
- func (s Value) B() bool
- func (s Value) Cap() capnp.Client
- func (s Value) D() ([]byte, error)
- func (Value) DecodeFromPtr(p capnp.Ptr) Value
- func (s Value) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Value) F32() float32
- func (s Value) F64() float64
- func (s Value) HasCap() bool
- func (s Value) HasD() bool
- func (s Value) HasLb() bool
- func (s Value) HasLcap() bool
- func (s Value) HasLd() bool
- func (s Value) HasLf32() bool
- func (s Value) HasLf64() bool
- func (s Value) HasLi16() bool
- func (s Value) HasLi32() bool
- func (s Value) HasLi64() bool
- func (s Value) HasLi8() bool
- func (s Value) HasLt() bool
- func (s Value) HasLui16() bool
- func (s Value) HasLui32() bool
- func (s Value) HasLui64() bool
- func (s Value) HasLui8() bool
- func (s Value) HasP() bool
- func (s Value) HasT() bool
- func (s Value) I16() int16
- func (s Value) I32() int32
- func (s Value) I64() int64
- func (s Value) I8() int8
- func (s Value) IsValid() bool
- func (s Value) Lb() (capnp.BitList, error)
- func (s Value) Lcap() (capnp.PointerList, error)
- func (s Value) Ld() (capnp.DataList, error)
- func (s Value) Lf32() (capnp.Float32List, error)
- func (s Value) Lf64() (capnp.Float64List, error)
- func (s Value) Li16() (capnp.Int16List, error)
- func (s Value) Li32() (capnp.Int32List, error)
- func (s Value) Li64() (capnp.Int64List, error)
- func (s Value) Li8() (capnp.Int8List, error)
- func (s Value) Lt() (capnp.TextList, error)
- func (s Value) Lui16() (capnp.UInt16List, error)
- func (s Value) Lui32() (capnp.UInt32List, error)
- func (s Value) Lui64() (capnp.UInt64List, error)
- func (s Value) Lui8() (capnp.UInt8List, error)
- func (s Value) Message() *capnp.Message
- func (s Value) NewLb(n int32) (capnp.BitList, error)
- func (s Value) NewLcap(n int32) (capnp.PointerList, error)
- func (s Value) NewLd(n int32) (capnp.DataList, error)
- func (s Value) NewLf32(n int32) (capnp.Float32List, error)
- func (s Value) NewLf64(n int32) (capnp.Float64List, error)
- func (s Value) NewLi16(n int32) (capnp.Int16List, error)
- func (s Value) NewLi32(n int32) (capnp.Int32List, error)
- func (s Value) NewLi64(n int32) (capnp.Int64List, error)
- func (s Value) NewLi8(n int32) (capnp.Int8List, error)
- func (s Value) NewLt(n int32) (capnp.TextList, error)
- func (s Value) NewLui16(n int32) (capnp.UInt16List, error)
- func (s Value) NewLui32(n int32) (capnp.UInt32List, error)
- func (s Value) NewLui64(n int32) (capnp.UInt64List, error)
- func (s Value) NewLui8(n int32) (capnp.UInt8List, error)
- func (s Value) P() (capnp.Ptr, error)
- func (s Value) Segment() *capnp.Segment
- func (s Value) SetB(v bool)
- func (s Value) SetCap(c capnp.Client) error
- func (s Value) SetD(v []byte) error
- func (s Value) SetF32(v float32)
- func (s Value) SetF64(v float64)
- func (s Value) SetI16(v int16)
- func (s Value) SetI32(v int32)
- func (s Value) SetI64(v int64)
- func (s Value) SetI8(v int8)
- func (s Value) SetLb(v capnp.BitList) error
- func (s Value) SetLcap(v capnp.PointerList) error
- func (s Value) SetLd(v capnp.DataList) error
- func (s Value) SetLf32(v capnp.Float32List) error
- func (s Value) SetLf64(v capnp.Float64List) error
- func (s Value) SetLi16(v capnp.Int16List) error
- func (s Value) SetLi32(v capnp.Int32List) error
- func (s Value) SetLi64(v capnp.Int64List) error
- func (s Value) SetLi8(v capnp.Int8List) error
- func (s Value) SetLt(v capnp.TextList) error
- func (s Value) SetLui16(v capnp.UInt16List) error
- func (s Value) SetLui32(v capnp.UInt32List) error
- func (s Value) SetLui64(v capnp.UInt64List) error
- func (s Value) SetLui8(v capnp.UInt8List) error
- func (s Value) SetP(v capnp.Ptr) error
- func (s Value) SetT(v string) error
- func (s Value) SetUi16(v uint16)
- func (s Value) SetUi32(v uint32)
- func (s Value) SetUi64(v uint64)
- func (s Value) SetUi8(v uint8)
- func (s Value) String() string
- func (s Value) T() (string, error)
- func (s Value) TBytes() ([]byte, error)
- func (s Value) ToPtr() capnp.Ptr
- func (s Value) Ui16() uint16
- func (s Value) Ui32() uint32
- func (s Value) Ui64() uint64
- func (s Value) Ui8() uint8
- func (s Value) Which() Value_Which
- type Value_Future
- type Value_List
- type Value_Which
Constants ¶
const Date_TypeID = 0x97e6feac0322118d
Date_TypeID is the unique identifier for the type Date.
const IdInformation_TypeID = 0xd4cb7ecbfe03dad3
IdInformation_TypeID is the unique identifier for the type IdInformation.
const Identifiable_TypeID = 0xb2afd1cb599c48d5
Identifiable_TypeID is the unique identifier for the type Identifiable.
const Identifiable_info_Params_TypeID = 0x9d8aa1cf1e49deb1
Identifiable_info_Params_TypeID is the unique identifier for the type Identifiable_info_Params.
const Pair_TypeID = 0xb9d4864725174733
Pair_TypeID is the unique identifier for the type Pair.
const StructuredText_TypeID = 0xed6c098b67cad454
StructuredText_TypeID is the unique identifier for the type StructuredText.
const Value_TypeID = 0xe17592335373b246
Value_TypeID is the unique identifier for the type Value.
Variables ¶
This section is empty.
Functions ¶
func Identifiable_Methods ¶
func Identifiable_Methods(methods []server.Method, s Identifiable_Server) []server.Method
Identifiable_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Identifiable_NewServer ¶
func Identifiable_NewServer(s Identifiable_Server) *server.Server
Identifiable_NewServer creates a new Server from an implementation of Identifiable_Server.
func RegisterSchema ¶
Types ¶
type Date_Future ¶
Date_Future is a wrapper for a Date promised by a client call.
func (Date_Future) Struct ¶
func (f Date_Future) Struct() (Date, error)
type IdInformation ¶
func NewIdInformation ¶
func NewIdInformation(s *capnp.Segment) (IdInformation, error)
func NewRootIdInformation ¶
func NewRootIdInformation(s *capnp.Segment) (IdInformation, error)
func ReadRootIdInformation ¶
func ReadRootIdInformation(msg *capnp.Message) (IdInformation, error)
func (IdInformation) DecodeFromPtr ¶
func (IdInformation) DecodeFromPtr(p capnp.Ptr) IdInformation
func (IdInformation) Description ¶
func (s IdInformation) Description() (string, error)
func (IdInformation) DescriptionBytes ¶
func (s IdInformation) DescriptionBytes() ([]byte, error)
func (IdInformation) EncodeAsPtr ¶
func (s IdInformation) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (IdInformation) HasDescription ¶
func (s IdInformation) HasDescription() bool
func (IdInformation) HasId ¶
func (s IdInformation) HasId() bool
func (IdInformation) HasName ¶
func (s IdInformation) HasName() bool
func (IdInformation) Id ¶
func (s IdInformation) Id() (string, error)
func (IdInformation) IdBytes ¶
func (s IdInformation) IdBytes() ([]byte, error)
func (IdInformation) IsValid ¶
func (s IdInformation) IsValid() bool
func (IdInformation) Message ¶
func (s IdInformation) Message() *capnp.Message
func (IdInformation) Name ¶
func (s IdInformation) Name() (string, error)
func (IdInformation) NameBytes ¶
func (s IdInformation) NameBytes() ([]byte, error)
func (IdInformation) Segment ¶
func (s IdInformation) Segment() *capnp.Segment
func (IdInformation) SetDescription ¶
func (s IdInformation) SetDescription(v string) error
func (IdInformation) SetId ¶
func (s IdInformation) SetId(v string) error
func (IdInformation) SetName ¶
func (s IdInformation) SetName(v string) error
func (IdInformation) String ¶
func (s IdInformation) String() string
func (IdInformation) ToPtr ¶
func (s IdInformation) ToPtr() capnp.Ptr
type IdInformation_Future ¶
IdInformation_Future is a wrapper for a IdInformation promised by a client call.
func (IdInformation_Future) Struct ¶
func (f IdInformation_Future) Struct() (IdInformation, error)
type IdInformation_List ¶
type IdInformation_List = capnp.StructList[IdInformation]
IdInformation_List is a list of IdInformation.
func NewIdInformation_List ¶
func NewIdInformation_List(s *capnp.Segment, sz int32) (IdInformation_List, error)
NewIdInformation creates a new list of IdInformation.
type Identifiable ¶
func Identifiable_ServerToClient ¶
func Identifiable_ServerToClient(s Identifiable_Server) Identifiable
Identifiable_ServerToClient creates a new Client from an implementation of Identifiable_Server. The caller is responsible for calling Release on the returned Client.
func (Identifiable) AddRef ¶
func (c Identifiable) AddRef() Identifiable
AddRef creates a new Client that refers to the same capability as c. If c is nil or has resolved to null, then AddRef returns nil.
func (Identifiable) DecodeFromPtr ¶
func (Identifiable) DecodeFromPtr(p capnp.Ptr) Identifiable
func (Identifiable) EncodeAsPtr ¶
func (c Identifiable) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Identifiable) GetFlowLimiter ¶
func (c Identifiable) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Identifiable) Info ¶
func (c Identifiable) Info(ctx context.Context, params func(Identifiable_info_Params) error) (IdInformation_Future, capnp.ReleaseFunc)
func (Identifiable) IsSame ¶
func (c Identifiable) IsSame(other Identifiable) bool
IsSame reports whether c and other refer to a capability created by the same call to NewClient. This can return false negatives if c or other are not fully resolved: use Resolve if this is an issue. If either c or other are released, then IsSame panics.
func (Identifiable) IsValid ¶
func (c Identifiable) IsValid() bool
IsValid reports whether c is a valid reference to a capability. A reference is invalid if it is nil, has resolved to null, or has been released.
func (Identifiable) Release ¶
func (c Identifiable) Release()
Release releases a capability reference. If this is the last reference to the capability, then the underlying resources associated with the capability will be released.
Release will panic if c has already been released, but not if c is nil or resolved to null.
func (Identifiable) Resolve ¶
func (c Identifiable) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (Identifiable) SetFlowLimiter ¶
func (c Identifiable) SetFlowLimiter(lim fc.FlowLimiter)
Update the flowcontrol.FlowLimiter used to manage flow control for this client. This affects all future calls, but not calls already waiting to send. Passing nil sets the value to flowcontrol.NopLimiter, which is also the default.
func (Identifiable) String ¶
func (c Identifiable) String() string
String returns a string that identifies this capability for debugging purposes. Its format should not be depended on: in particular, it should not be used to compare clients. Use IsSame to compare clients for equality.
func (Identifiable) WaitStreaming ¶
func (c Identifiable) WaitStreaming() error
type Identifiable_List ¶
type Identifiable_List = capnp.CapList[Identifiable]
Identifiable_List is a list of Identifiable.
func NewIdentifiable_List ¶
func NewIdentifiable_List(s *capnp.Segment, sz int32) (Identifiable_List, error)
NewIdentifiable_List creates a new list of Identifiable.
type Identifiable_Server ¶
type Identifiable_Server interface {
Info(context.Context, Identifiable_info) error
}
A Identifiable_Server is a Identifiable with a local implementation.
type Identifiable_info ¶
Identifiable_info holds the state for a server call to Identifiable.info. See server.Call for documentation.
func (Identifiable_info) AllocResults ¶
func (c Identifiable_info) AllocResults() (IdInformation, error)
AllocResults allocates the results struct.
func (Identifiable_info) Args ¶
func (c Identifiable_info) Args() Identifiable_info_Params
Args returns the call's arguments.
type Identifiable_info_Params ¶
func NewIdentifiable_info_Params ¶
func NewIdentifiable_info_Params(s *capnp.Segment) (Identifiable_info_Params, error)
func NewRootIdentifiable_info_Params ¶
func NewRootIdentifiable_info_Params(s *capnp.Segment) (Identifiable_info_Params, error)
func ReadRootIdentifiable_info_Params ¶
func ReadRootIdentifiable_info_Params(msg *capnp.Message) (Identifiable_info_Params, error)
func (Identifiable_info_Params) DecodeFromPtr ¶
func (Identifiable_info_Params) DecodeFromPtr(p capnp.Ptr) Identifiable_info_Params
func (Identifiable_info_Params) EncodeAsPtr ¶
func (s Identifiable_info_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Identifiable_info_Params) IsValid ¶
func (s Identifiable_info_Params) IsValid() bool
func (Identifiable_info_Params) Message ¶
func (s Identifiable_info_Params) Message() *capnp.Message
func (Identifiable_info_Params) Segment ¶
func (s Identifiable_info_Params) Segment() *capnp.Segment
func (Identifiable_info_Params) String ¶
func (s Identifiable_info_Params) String() string
func (Identifiable_info_Params) ToPtr ¶
func (s Identifiable_info_Params) ToPtr() capnp.Ptr
type Identifiable_info_Params_Future ¶
Identifiable_info_Params_Future is a wrapper for a Identifiable_info_Params promised by a client call.
func (Identifiable_info_Params_Future) Struct ¶
func (f Identifiable_info_Params_Future) Struct() (Identifiable_info_Params, error)
type Identifiable_info_Params_List ¶
type Identifiable_info_Params_List = capnp.StructList[Identifiable_info_Params]
Identifiable_info_Params_List is a list of Identifiable_info_Params.
func NewIdentifiable_info_Params_List ¶
func NewIdentifiable_info_Params_List(s *capnp.Segment, sz int32) (Identifiable_info_Params_List, error)
NewIdentifiable_info_Params creates a new list of Identifiable_info_Params.
type Pair_Future ¶
Pair_Future is a wrapper for a Pair promised by a client call.
func (Pair_Future) Fst ¶
func (p Pair_Future) Fst() *capnp.Future
func (Pair_Future) Snd ¶
func (p Pair_Future) Snd() *capnp.Future
func (Pair_Future) Struct ¶
func (f Pair_Future) Struct() (Pair, error)
type StructuredText ¶
func NewRootStructuredText ¶
func NewRootStructuredText(s *capnp.Segment) (StructuredText, error)
func NewStructuredText ¶
func NewStructuredText(s *capnp.Segment) (StructuredText, error)
func ReadRootStructuredText ¶
func ReadRootStructuredText(msg *capnp.Message) (StructuredText, error)
func (StructuredText) DecodeFromPtr ¶
func (StructuredText) DecodeFromPtr(p capnp.Ptr) StructuredText
func (StructuredText) EncodeAsPtr ¶
func (s StructuredText) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (StructuredText) HasValue ¶
func (s StructuredText) HasValue() bool
func (StructuredText) IsValid ¶
func (s StructuredText) IsValid() bool
func (StructuredText) Message ¶
func (s StructuredText) Message() *capnp.Message
func (StructuredText) Segment ¶
func (s StructuredText) Segment() *capnp.Segment
func (StructuredText) SetValue ¶
func (s StructuredText) SetValue(v string) error
func (StructuredText) String ¶
func (s StructuredText) String() string
func (StructuredText) Structure ¶
func (s StructuredText) Structure() StructuredText_structure
func (StructuredText) ToPtr ¶
func (s StructuredText) ToPtr() capnp.Ptr
func (StructuredText) Value ¶
func (s StructuredText) Value() (string, error)
func (StructuredText) ValueBytes ¶
func (s StructuredText) ValueBytes() ([]byte, error)
type StructuredText_Future ¶
StructuredText_Future is a wrapper for a StructuredText promised by a client call.
func (StructuredText_Future) Struct ¶
func (f StructuredText_Future) Struct() (StructuredText, error)
func (StructuredText_Future) Structure ¶
func (p StructuredText_Future) Structure() StructuredText_structure_Future
type StructuredText_List ¶
type StructuredText_List = capnp.StructList[StructuredText]
StructuredText_List is a list of StructuredText.
func NewStructuredText_List ¶
func NewStructuredText_List(s *capnp.Segment, sz int32) (StructuredText_List, error)
NewStructuredText creates a new list of StructuredText.
type StructuredText_structure ¶
type StructuredText_structure StructuredText
func (StructuredText_structure) IsValid ¶
func (s StructuredText_structure) IsValid() bool
func (StructuredText_structure) Message ¶
func (s StructuredText_structure) Message() *capnp.Message
func (StructuredText_structure) Segment ¶
func (s StructuredText_structure) Segment() *capnp.Segment
func (StructuredText_structure) SetJson ¶
func (s StructuredText_structure) SetJson()
func (StructuredText_structure) SetNone ¶
func (s StructuredText_structure) SetNone()
func (StructuredText_structure) SetXml ¶
func (s StructuredText_structure) SetXml()
func (StructuredText_structure) Which ¶
func (s StructuredText_structure) Which() StructuredText_structure_Which
type StructuredText_structure_Future ¶
StructuredText_structure_Future is a wrapper for a StructuredText_structure promised by a client call.
func (StructuredText_structure_Future) Struct ¶
func (f StructuredText_structure_Future) Struct() (StructuredText_structure, error)
type StructuredText_structure_Which ¶
type StructuredText_structure_Which uint16
const ( StructuredText_structure_Which_none StructuredText_structure_Which = 0 StructuredText_structure_Which_json StructuredText_structure_Which = 1 StructuredText_structure_Which_xml StructuredText_structure_Which = 2 )
func (StructuredText_structure_Which) String ¶
func (w StructuredText_structure_Which) String() string
type Value ¶
func (Value) NewLb ¶
NewLb sets the lb field to a newly allocated capnp.BitList, preferring placement in s's segment.
func (Value) NewLcap ¶
func (s Value) NewLcap(n int32) (capnp.PointerList, error)
NewLcap sets the lcap field to a newly allocated capnp.PointerList, preferring placement in s's segment.
func (Value) NewLd ¶
NewLd sets the ld field to a newly allocated capnp.DataList, preferring placement in s's segment.
func (Value) NewLf32 ¶
func (s Value) NewLf32(n int32) (capnp.Float32List, error)
NewLf32 sets the lf32 field to a newly allocated capnp.Float32List, preferring placement in s's segment.
func (Value) NewLf64 ¶
func (s Value) NewLf64(n int32) (capnp.Float64List, error)
NewLf64 sets the lf64 field to a newly allocated capnp.Float64List, preferring placement in s's segment.
func (Value) NewLi16 ¶
NewLi16 sets the li16 field to a newly allocated capnp.Int16List, preferring placement in s's segment.
func (Value) NewLi32 ¶
NewLi32 sets the li32 field to a newly allocated capnp.Int32List, preferring placement in s's segment.
func (Value) NewLi64 ¶
NewLi64 sets the li64 field to a newly allocated capnp.Int64List, preferring placement in s's segment.
func (Value) NewLi8 ¶
NewLi8 sets the li8 field to a newly allocated capnp.Int8List, preferring placement in s's segment.
func (Value) NewLt ¶
NewLt sets the lt field to a newly allocated capnp.TextList, preferring placement in s's segment.
func (Value) NewLui16 ¶
func (s Value) NewLui16(n int32) (capnp.UInt16List, error)
NewLui16 sets the lui16 field to a newly allocated capnp.UInt16List, preferring placement in s's segment.
func (Value) NewLui32 ¶
func (s Value) NewLui32(n int32) (capnp.UInt32List, error)
NewLui32 sets the lui32 field to a newly allocated capnp.UInt32List, preferring placement in s's segment.
func (Value) NewLui64 ¶
func (s Value) NewLui64(n int32) (capnp.UInt64List, error)
NewLui64 sets the lui64 field to a newly allocated capnp.UInt64List, preferring placement in s's segment.
func (Value) NewLui8 ¶
NewLui8 sets the lui8 field to a newly allocated capnp.UInt8List, preferring placement in s's segment.
func (Value) Which ¶
func (s Value) Which() Value_Which
type Value_Future ¶
Value_Future is a wrapper for a Value promised by a client call.
func (Value_Future) Cap ¶
func (p Value_Future) Cap() capnp.Client
func (Value_Future) P ¶
func (p Value_Future) P() *capnp.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_f64 Value_Which = 0 Value_Which_f32 Value_Which = 1 Value_Which_i64 Value_Which = 2 Value_Which_i32 Value_Which = 3 Value_Which_i16 Value_Which = 4 Value_Which_i8 Value_Which = 5 Value_Which_ui64 Value_Which = 6 Value_Which_ui32 Value_Which = 7 Value_Which_ui16 Value_Which = 8 Value_Which_ui8 Value_Which = 9 Value_Which_b Value_Which = 10 Value_Which_t Value_Which = 11 Value_Which_d Value_Which = 12 Value_Which_p Value_Which = 13 Value_Which_cap Value_Which = 14 Value_Which_lf64 Value_Which = 15 Value_Which_lf32 Value_Which = 16 Value_Which_li64 Value_Which = 17 Value_Which_li32 Value_Which = 18 Value_Which_li16 Value_Which = 19 Value_Which_li8 Value_Which = 20 Value_Which_lui64 Value_Which = 21 Value_Which_lui32 Value_Which = 22 Value_Which_lui16 Value_Which = 23 Value_Which_lui8 Value_Which = 24 Value_Which_lb Value_Which = 25 Value_Which_lt Value_Which = 26 Value_Which_ld Value_Which = 27 Value_Which_lcap Value_Which = 28 )
func (Value_Which) String ¶
func (w Value_Which) String() string