util

package
v0.0.0-...-e2e80d8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Assignable_Getter_TypeID = 0x80f2f65360d64224

Assignable_Getter_TypeID is the unique identifier for the type Assignable_Getter.

View Source
const Assignable_Getter_get_Params_TypeID = 0xb19fdbd356844119

Assignable_Getter_get_Params_TypeID is the unique identifier for the type Assignable_Getter_get_Params.

View Source
const Assignable_Getter_get_Results_TypeID = 0x97ef2da226123492

Assignable_Getter_get_Results_TypeID is the unique identifier for the type Assignable_Getter_get_Results.

View Source
const Assignable_Getter_subscribe_Params_TypeID = 0xf02783ef982ecea9

Assignable_Getter_subscribe_Params_TypeID is the unique identifier for the type Assignable_Getter_subscribe_Params.

View Source
const Assignable_Getter_subscribe_Results_TypeID = 0x84e0f802c9af605b

Assignable_Getter_subscribe_Results_TypeID is the unique identifier for the type Assignable_Getter_subscribe_Results.

View Source
const Assignable_Setter_TypeID = 0xd5256a3f93589d2f

Assignable_Setter_TypeID is the unique identifier for the type Assignable_Setter.

View Source
const Assignable_Setter_set_Params_TypeID = 0x98d0372787b787d1

Assignable_Setter_set_Params_TypeID is the unique identifier for the type Assignable_Setter_set_Params.

View Source
const Assignable_Setter_set_Results_TypeID = 0xdbfbb635d3e6abab

Assignable_Setter_set_Results_TypeID is the unique identifier for the type Assignable_Setter_set_Results.

View Source
const Assignable_TypeID = 0xeaf255b498229199

Assignable_TypeID is the unique identifier for the type Assignable.

View Source
const Assignable_asGetter_Params_TypeID = 0xf907945b872b26cf

Assignable_asGetter_Params_TypeID is the unique identifier for the type Assignable_asGetter_Params.

View Source
const Assignable_asGetter_Results_TypeID = 0x8c3d547ef2930e96

Assignable_asGetter_Results_TypeID is the unique identifier for the type Assignable_asGetter_Results.

View Source
const Assignable_asSetter_Params_TypeID = 0xa01f603357f3b349

Assignable_asSetter_Params_TypeID is the unique identifier for the type Assignable_asSetter_Params.

View Source
const Assignable_asSetter_Results_TypeID = 0xc6cbc10181c4f397

Assignable_asSetter_Results_TypeID is the unique identifier for the type Assignable_asSetter_Results.

View Source
const Assignable_get_Params_TypeID = 0xbbfd27b5d2515662

Assignable_get_Params_TypeID is the unique identifier for the type Assignable_get_Params.

View Source
const Assignable_get_Results_TypeID = 0xb351b437cd426a4f

Assignable_get_Results_TypeID is the unique identifier for the type Assignable_get_Results.

View Source
const Blob_TypeID = 0xe53527a75d90198f

Blob_TypeID is the unique identifier for the type Blob.

View Source
const Blob_getSize_Params_TypeID = 0x8ee5f62e1fab915d

Blob_getSize_Params_TypeID is the unique identifier for the type Blob_getSize_Params.

View Source
const Blob_getSize_Results_TypeID = 0x8e48cb1497f3d6f4

Blob_getSize_Results_TypeID is the unique identifier for the type Blob_getSize_Results.

View Source
const Blob_getSlice_Params_TypeID = 0x8edb5f3937d96b8a

Blob_getSlice_Params_TypeID is the unique identifier for the type Blob_getSlice_Params.

View Source
const Blob_getSlice_Results_TypeID = 0xc65caf9a2d389078

Blob_getSlice_Results_TypeID is the unique identifier for the type Blob_getSlice_Results.

View Source
const Blob_writeTo_Params_TypeID = 0x9f0719e9a9dccc4b

Blob_writeTo_Params_TypeID is the unique identifier for the type Blob_writeTo_Params.

View Source
const Blob_writeTo_Results_TypeID = 0xdb3152bd3bc2aa40

Blob_writeTo_Results_TypeID is the unique identifier for the type Blob_writeTo_Results.

View Source
const ByteStream_TypeID = 0xcd57387729cfe35f

ByteStream_TypeID is the unique identifier for the type ByteStream.

View Source
const ByteStream_done_Params_TypeID = 0xbc1426493658b76e

ByteStream_done_Params_TypeID is the unique identifier for the type ByteStream_done_Params.

View Source
const ByteStream_done_Results_TypeID = 0xd0d8d935ee30b219

ByteStream_done_Results_TypeID is the unique identifier for the type ByteStream_done_Results.

View Source
const ByteStream_expectSize_Params_TypeID = 0x8c9a3c7674c761d3

ByteStream_expectSize_Params_TypeID is the unique identifier for the type ByteStream_expectSize_Params.

View Source
const ByteStream_expectSize_Results_TypeID = 0xf35749d82a51479b

ByteStream_expectSize_Results_TypeID is the unique identifier for the type ByteStream_expectSize_Results.

View Source
const ByteStream_write_Params_TypeID = 0x97ed122121126ff2

ByteStream_write_Params_TypeID is the unique identifier for the type ByteStream_write_Params.

View Source
const Handle_TypeID = 0x98f424ac606042e0

Handle_TypeID is the unique identifier for the type Handle.

View Source
const Handle_ping_Params_TypeID = 0x862b50d52c0258b0

Handle_ping_Params_TypeID is the unique identifier for the type Handle_ping_Params.

View Source
const Handle_ping_Results_TypeID = 0xc97765649d6cabe9

Handle_ping_Results_TypeID is the unique identifier for the type Handle_ping_Results.

View Source
const KeyValue_TypeID = 0x94a081e4abb13424

KeyValue_TypeID is the unique identifier for the type KeyValue.

View Source
const LocalizedText_Localization_TypeID = 0xa4f5ae06dd1b7791

LocalizedText_Localization_TypeID is the unique identifier for the type LocalizedText_Localization.

View Source
const LocalizedText_TypeID = 0x8b5db772377be249

LocalizedText_TypeID is the unique identifier for the type LocalizedText.

View Source
const StaticAsset_Protocol_TypeID = 0x9714437546d80c39

StaticAsset_Protocol_TypeID is the unique identifier for the type StaticAsset_Protocol.

View Source
const StaticAsset_TypeID = 0xfabb5e621fa9a23f

StaticAsset_TypeID is the unique identifier for the type StaticAsset.

View Source
const StaticAsset_getUrl_Params_TypeID = 0xa75ecf12570b2966

StaticAsset_getUrl_Params_TypeID is the unique identifier for the type StaticAsset_getUrl_Params.

View Source
const StaticAsset_getUrl_Results_TypeID = 0xa5c3aa75d6b648e2

StaticAsset_getUrl_Results_TypeID is the unique identifier for the type StaticAsset_getUrl_Results.

Variables

This section is empty.

Functions

func Assignable_Getter_Methods

func Assignable_Getter_Methods(methods []server.Method, s Assignable_Getter_Server) []server.Method

Assignable_Getter_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Assignable_Getter_NewServer

func Assignable_Getter_NewServer(s Assignable_Getter_Server) *server.Server

Assignable_Getter_NewServer creates a new Server from an implementation of Assignable_Getter_Server.

func Assignable_Methods

func Assignable_Methods(methods []server.Method, s Assignable_Server) []server.Method

Assignable_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Assignable_NewServer

func Assignable_NewServer(s Assignable_Server) *server.Server

Assignable_NewServer creates a new Server from an implementation of Assignable_Server.

func Assignable_Setter_Methods

func Assignable_Setter_Methods(methods []server.Method, s Assignable_Setter_Server) []server.Method

Assignable_Setter_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Assignable_Setter_NewServer

func Assignable_Setter_NewServer(s Assignable_Setter_Server) *server.Server

Assignable_Setter_NewServer creates a new Server from an implementation of Assignable_Setter_Server.

func Blob_Methods

func Blob_Methods(methods []server.Method, s Blob_Server) []server.Method

Blob_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Blob_NewServer

func Blob_NewServer(s Blob_Server) *server.Server

Blob_NewServer creates a new Server from an implementation of Blob_Server.

func ByteStream_Methods

func ByteStream_Methods(methods []server.Method, s ByteStream_Server) []server.Method

ByteStream_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func ByteStream_NewServer

func ByteStream_NewServer(s ByteStream_Server) *server.Server

ByteStream_NewServer creates a new Server from an implementation of ByteStream_Server.

func Handle_Methods

func Handle_Methods(methods []server.Method, s Handle_Server) []server.Method

Handle_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func Handle_NewServer

func Handle_NewServer(s Handle_Server) *server.Server

Handle_NewServer creates a new Server from an implementation of Handle_Server.

func StaticAsset_Methods

func StaticAsset_Methods(methods []server.Method, s StaticAsset_Server) []server.Method

StaticAsset_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func StaticAsset_NewServer

func StaticAsset_NewServer(s StaticAsset_Server) *server.Server

StaticAsset_NewServer creates a new Server from an implementation of StaticAsset_Server.

Types

type Assignable

type Assignable capnp.Client

func Assignable_ServerToClient

func Assignable_ServerToClient(s Assignable_Server) Assignable

Assignable_ServerToClient creates a new Client from an implementation of Assignable_Server. The caller is responsible for calling Release on the returned Client.

func (Assignable) AddRef

func (c Assignable) AddRef() Assignable

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 (Assignable) DecodeFromPtr

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

func (Assignable) EncodeAsPtr

func (c Assignable) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Assignable) GetFlowLimiter

func (c Assignable) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Assignable) IsSame

func (c Assignable) IsSame(other Assignable) 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 (Assignable) IsValid

func (c Assignable) 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 (Assignable) Release

func (c Assignable) 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 (Assignable) Resolve

func (c Assignable) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (Assignable) SetFlowLimiter

func (c Assignable) 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 (Assignable) String

func (c Assignable) 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.

type Assignable_Getter

type Assignable_Getter capnp.Client

func Assignable_Getter_ServerToClient

func Assignable_Getter_ServerToClient(s Assignable_Getter_Server) Assignable_Getter

Assignable_Getter_ServerToClient creates a new Client from an implementation of Assignable_Getter_Server. The caller is responsible for calling Release on the returned Client.

func (Assignable_Getter) AddRef

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 (Assignable_Getter) DecodeFromPtr

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

func (Assignable_Getter) EncodeAsPtr

func (c Assignable_Getter) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Assignable_Getter) GetFlowLimiter

func (c Assignable_Getter) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Assignable_Getter) IsSame

func (c Assignable_Getter) IsSame(other Assignable_Getter) 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 (Assignable_Getter) IsValid

func (c Assignable_Getter) 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 (Assignable_Getter) Release

func (c Assignable_Getter) 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 (Assignable_Getter) Resolve

func (c Assignable_Getter) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (Assignable_Getter) SetFlowLimiter

func (c Assignable_Getter) 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 (Assignable_Getter) String

func (c Assignable_Getter) 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.

type Assignable_Getter_List

type Assignable_Getter_List = capnp.CapList[Assignable_Getter]

Assignable_Getter_List is a list of Assignable_Getter.

func NewAssignable_Getter_List

func NewAssignable_Getter_List(s *capnp.Segment, sz int32) (Assignable_Getter_List, error)

NewAssignable_Getter creates a new list of Assignable_Getter.

type Assignable_Getter_Server

type Assignable_Getter_Server interface {
	Get(context.Context, Assignable_Getter_get) error

	Subscribe(context.Context, Assignable_Getter_subscribe) error
}

type Assignable_Getter_get

type Assignable_Getter_get struct {
	*server.Call
}

Assignable_Getter_get holds the state for a server call to Assignable_Getter.get. See server.Call for documentation.

func (Assignable_Getter_get) AllocResults

AllocResults allocates the results struct.

func (Assignable_Getter_get) Args

Args returns the call's arguments.

type Assignable_Getter_get_Params

type Assignable_Getter_get_Params capnp.Struct

func NewAssignable_Getter_get_Params

func NewAssignable_Getter_get_Params(s *capnp.Segment) (Assignable_Getter_get_Params, error)

func NewRootAssignable_Getter_get_Params

func NewRootAssignable_Getter_get_Params(s *capnp.Segment) (Assignable_Getter_get_Params, error)

func ReadRootAssignable_Getter_get_Params

func ReadRootAssignable_Getter_get_Params(msg *capnp.Message) (Assignable_Getter_get_Params, error)

func (Assignable_Getter_get_Params) DecodeFromPtr

func (Assignable_Getter_get_Params) EncodeAsPtr

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

func (Assignable_Getter_get_Params) IsValid

func (s Assignable_Getter_get_Params) IsValid() bool

func (Assignable_Getter_get_Params) Message

func (Assignable_Getter_get_Params) Segment

func (Assignable_Getter_get_Params) String

func (Assignable_Getter_get_Params) ToPtr

type Assignable_Getter_get_Params_Future

type Assignable_Getter_get_Params_Future struct{ *capnp.Future }

Assignable_Getter_get_Params_Future is a wrapper for a Assignable_Getter_get_Params promised by a client call.

func (Assignable_Getter_get_Params_Future) Struct

type Assignable_Getter_get_Params_List

type Assignable_Getter_get_Params_List = capnp.StructList[Assignable_Getter_get_Params]

Assignable_Getter_get_Params_List is a list of Assignable_Getter_get_Params.

func NewAssignable_Getter_get_Params_List

func NewAssignable_Getter_get_Params_List(s *capnp.Segment, sz int32) (Assignable_Getter_get_Params_List, error)

NewAssignable_Getter_get_Params creates a new list of Assignable_Getter_get_Params.

type Assignable_Getter_get_Results

type Assignable_Getter_get_Results capnp.Struct

func NewAssignable_Getter_get_Results

func NewAssignable_Getter_get_Results(s *capnp.Segment) (Assignable_Getter_get_Results, error)

func NewRootAssignable_Getter_get_Results

func NewRootAssignable_Getter_get_Results(s *capnp.Segment) (Assignable_Getter_get_Results, error)

func ReadRootAssignable_Getter_get_Results

func ReadRootAssignable_Getter_get_Results(msg *capnp.Message) (Assignable_Getter_get_Results, error)

func (Assignable_Getter_get_Results) DecodeFromPtr

func (Assignable_Getter_get_Results) EncodeAsPtr

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

func (Assignable_Getter_get_Results) HasValue

func (s Assignable_Getter_get_Results) HasValue() bool

func (Assignable_Getter_get_Results) IsValid

func (s Assignable_Getter_get_Results) IsValid() bool

func (Assignable_Getter_get_Results) Message

func (Assignable_Getter_get_Results) Segment

func (Assignable_Getter_get_Results) SetValue

func (Assignable_Getter_get_Results) String

func (Assignable_Getter_get_Results) ToPtr

func (Assignable_Getter_get_Results) Value

type Assignable_Getter_get_Results_Future

type Assignable_Getter_get_Results_Future struct{ *capnp.Future }

Assignable_Getter_get_Results_Future is a wrapper for a Assignable_Getter_get_Results promised by a client call.

func (Assignable_Getter_get_Results_Future) Struct

func (Assignable_Getter_get_Results_Future) Value

type Assignable_Getter_get_Results_List

type Assignable_Getter_get_Results_List = capnp.StructList[Assignable_Getter_get_Results]

Assignable_Getter_get_Results_List is a list of Assignable_Getter_get_Results.

func NewAssignable_Getter_get_Results_List

func NewAssignable_Getter_get_Results_List(s *capnp.Segment, sz int32) (Assignable_Getter_get_Results_List, error)

NewAssignable_Getter_get_Results creates a new list of Assignable_Getter_get_Results.

type Assignable_Getter_subscribe

type Assignable_Getter_subscribe struct {
	*server.Call
}

Assignable_Getter_subscribe holds the state for a server call to Assignable_Getter.subscribe. See server.Call for documentation.

func (Assignable_Getter_subscribe) AllocResults

AllocResults allocates the results struct.

func (Assignable_Getter_subscribe) Args

Args returns the call's arguments.

type Assignable_Getter_subscribe_Params

type Assignable_Getter_subscribe_Params capnp.Struct

func NewAssignable_Getter_subscribe_Params

func NewAssignable_Getter_subscribe_Params(s *capnp.Segment) (Assignable_Getter_subscribe_Params, error)

func NewRootAssignable_Getter_subscribe_Params

func NewRootAssignable_Getter_subscribe_Params(s *capnp.Segment) (Assignable_Getter_subscribe_Params, error)

func ReadRootAssignable_Getter_subscribe_Params

func ReadRootAssignable_Getter_subscribe_Params(msg *capnp.Message) (Assignable_Getter_subscribe_Params, error)

func (Assignable_Getter_subscribe_Params) DecodeFromPtr

func (Assignable_Getter_subscribe_Params) EncodeAsPtr

func (Assignable_Getter_subscribe_Params) HasSetter

func (Assignable_Getter_subscribe_Params) IsValid

func (Assignable_Getter_subscribe_Params) Message

func (Assignable_Getter_subscribe_Params) Segment

func (Assignable_Getter_subscribe_Params) SetSetter

func (Assignable_Getter_subscribe_Params) Setter

func (Assignable_Getter_subscribe_Params) String

func (Assignable_Getter_subscribe_Params) ToPtr

type Assignable_Getter_subscribe_Params_Future

type Assignable_Getter_subscribe_Params_Future struct{ *capnp.Future }

Assignable_Getter_subscribe_Params_Future is a wrapper for a Assignable_Getter_subscribe_Params promised by a client call.

func (Assignable_Getter_subscribe_Params_Future) Setter

func (Assignable_Getter_subscribe_Params_Future) Struct

type Assignable_Getter_subscribe_Params_List

type Assignable_Getter_subscribe_Params_List = capnp.StructList[Assignable_Getter_subscribe_Params]

Assignable_Getter_subscribe_Params_List is a list of Assignable_Getter_subscribe_Params.

func NewAssignable_Getter_subscribe_Params_List

func NewAssignable_Getter_subscribe_Params_List(s *capnp.Segment, sz int32) (Assignable_Getter_subscribe_Params_List, error)

NewAssignable_Getter_subscribe_Params creates a new list of Assignable_Getter_subscribe_Params.

type Assignable_Getter_subscribe_Results

type Assignable_Getter_subscribe_Results capnp.Struct

func NewAssignable_Getter_subscribe_Results

func NewAssignable_Getter_subscribe_Results(s *capnp.Segment) (Assignable_Getter_subscribe_Results, error)

func NewRootAssignable_Getter_subscribe_Results

func NewRootAssignable_Getter_subscribe_Results(s *capnp.Segment) (Assignable_Getter_subscribe_Results, error)

func ReadRootAssignable_Getter_subscribe_Results

func ReadRootAssignable_Getter_subscribe_Results(msg *capnp.Message) (Assignable_Getter_subscribe_Results, error)

func (Assignable_Getter_subscribe_Results) DecodeFromPtr

func (Assignable_Getter_subscribe_Results) EncodeAsPtr

func (Assignable_Getter_subscribe_Results) Handle

func (Assignable_Getter_subscribe_Results) HasHandle

func (Assignable_Getter_subscribe_Results) IsValid

func (Assignable_Getter_subscribe_Results) Message

func (Assignable_Getter_subscribe_Results) Segment

func (Assignable_Getter_subscribe_Results) SetHandle

func (Assignable_Getter_subscribe_Results) String

func (Assignable_Getter_subscribe_Results) ToPtr

type Assignable_Getter_subscribe_Results_Future

type Assignable_Getter_subscribe_Results_Future struct{ *capnp.Future }

Assignable_Getter_subscribe_Results_Future is a wrapper for a Assignable_Getter_subscribe_Results promised by a client call.

func (Assignable_Getter_subscribe_Results_Future) Handle

func (Assignable_Getter_subscribe_Results_Future) Struct

type Assignable_Getter_subscribe_Results_List

type Assignable_Getter_subscribe_Results_List = capnp.StructList[Assignable_Getter_subscribe_Results]

Assignable_Getter_subscribe_Results_List is a list of Assignable_Getter_subscribe_Results.

func NewAssignable_Getter_subscribe_Results_List

func NewAssignable_Getter_subscribe_Results_List(s *capnp.Segment, sz int32) (Assignable_Getter_subscribe_Results_List, error)

NewAssignable_Getter_subscribe_Results creates a new list of Assignable_Getter_subscribe_Results.

type Assignable_List

type Assignable_List = capnp.CapList[Assignable]

Assignable_List is a list of Assignable.

func NewAssignable_List

func NewAssignable_List(s *capnp.Segment, sz int32) (Assignable_List, error)

NewAssignable creates a new list of Assignable.

type Assignable_Setter

type Assignable_Setter capnp.Client

func Assignable_Setter_ServerToClient

func Assignable_Setter_ServerToClient(s Assignable_Setter_Server) Assignable_Setter

Assignable_Setter_ServerToClient creates a new Client from an implementation of Assignable_Setter_Server. The caller is responsible for calling Release on the returned Client.

func (Assignable_Setter) AddRef

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 (Assignable_Setter) DecodeFromPtr

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

func (Assignable_Setter) EncodeAsPtr

func (c Assignable_Setter) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Assignable_Setter) GetFlowLimiter

func (c Assignable_Setter) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Assignable_Setter) IsSame

func (c Assignable_Setter) IsSame(other Assignable_Setter) 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 (Assignable_Setter) IsValid

func (c Assignable_Setter) 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 (Assignable_Setter) Release

func (c Assignable_Setter) 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 (Assignable_Setter) Resolve

func (c Assignable_Setter) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (Assignable_Setter) SetFlowLimiter

func (c Assignable_Setter) 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 (Assignable_Setter) String

func (c Assignable_Setter) 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.

type Assignable_Setter_List

type Assignable_Setter_List = capnp.CapList[Assignable_Setter]

Assignable_Setter_List is a list of Assignable_Setter.

func NewAssignable_Setter_List

func NewAssignable_Setter_List(s *capnp.Segment, sz int32) (Assignable_Setter_List, error)

NewAssignable_Setter creates a new list of Assignable_Setter.

type Assignable_Setter_Server

type Assignable_Setter_Server interface {
	Set(context.Context, Assignable_Setter_set) error
}

type Assignable_Setter_set

type Assignable_Setter_set struct {
	*server.Call
}

Assignable_Setter_set holds the state for a server call to Assignable_Setter.set. See server.Call for documentation.

func (Assignable_Setter_set) AllocResults

AllocResults allocates the results struct.

func (Assignable_Setter_set) Args

Args returns the call's arguments.

type Assignable_Setter_set_Params

type Assignable_Setter_set_Params capnp.Struct

func NewAssignable_Setter_set_Params

func NewAssignable_Setter_set_Params(s *capnp.Segment) (Assignable_Setter_set_Params, error)

func NewRootAssignable_Setter_set_Params

func NewRootAssignable_Setter_set_Params(s *capnp.Segment) (Assignable_Setter_set_Params, error)

func ReadRootAssignable_Setter_set_Params

func ReadRootAssignable_Setter_set_Params(msg *capnp.Message) (Assignable_Setter_set_Params, error)

func (Assignable_Setter_set_Params) DecodeFromPtr

func (Assignable_Setter_set_Params) EncodeAsPtr

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

func (Assignable_Setter_set_Params) HasValue

func (s Assignable_Setter_set_Params) HasValue() bool

func (Assignable_Setter_set_Params) IsValid

func (s Assignable_Setter_set_Params) IsValid() bool

func (Assignable_Setter_set_Params) Message

func (Assignable_Setter_set_Params) Segment

func (Assignable_Setter_set_Params) SetValue

func (Assignable_Setter_set_Params) String

func (Assignable_Setter_set_Params) ToPtr

func (Assignable_Setter_set_Params) Value

type Assignable_Setter_set_Params_Future

type Assignable_Setter_set_Params_Future struct{ *capnp.Future }

Assignable_Setter_set_Params_Future is a wrapper for a Assignable_Setter_set_Params promised by a client call.

func (Assignable_Setter_set_Params_Future) Struct

func (Assignable_Setter_set_Params_Future) Value

type Assignable_Setter_set_Params_List

type Assignable_Setter_set_Params_List = capnp.StructList[Assignable_Setter_set_Params]

Assignable_Setter_set_Params_List is a list of Assignable_Setter_set_Params.

func NewAssignable_Setter_set_Params_List

func NewAssignable_Setter_set_Params_List(s *capnp.Segment, sz int32) (Assignable_Setter_set_Params_List, error)

NewAssignable_Setter_set_Params creates a new list of Assignable_Setter_set_Params.

type Assignable_Setter_set_Results

type Assignable_Setter_set_Results capnp.Struct

func NewAssignable_Setter_set_Results

func NewAssignable_Setter_set_Results(s *capnp.Segment) (Assignable_Setter_set_Results, error)

func NewRootAssignable_Setter_set_Results

func NewRootAssignable_Setter_set_Results(s *capnp.Segment) (Assignable_Setter_set_Results, error)

func ReadRootAssignable_Setter_set_Results

func ReadRootAssignable_Setter_set_Results(msg *capnp.Message) (Assignable_Setter_set_Results, error)

func (Assignable_Setter_set_Results) DecodeFromPtr

func (Assignable_Setter_set_Results) EncodeAsPtr

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

func (Assignable_Setter_set_Results) IsValid

func (s Assignable_Setter_set_Results) IsValid() bool

func (Assignable_Setter_set_Results) Message

func (Assignable_Setter_set_Results) Segment

func (Assignable_Setter_set_Results) String

func (Assignable_Setter_set_Results) ToPtr

type Assignable_Setter_set_Results_Future

type Assignable_Setter_set_Results_Future struct{ *capnp.Future }

Assignable_Setter_set_Results_Future is a wrapper for a Assignable_Setter_set_Results promised by a client call.

func (Assignable_Setter_set_Results_Future) Struct

type Assignable_Setter_set_Results_List

type Assignable_Setter_set_Results_List = capnp.StructList[Assignable_Setter_set_Results]

Assignable_Setter_set_Results_List is a list of Assignable_Setter_set_Results.

func NewAssignable_Setter_set_Results_List

func NewAssignable_Setter_set_Results_List(s *capnp.Segment, sz int32) (Assignable_Setter_set_Results_List, error)

NewAssignable_Setter_set_Results creates a new list of Assignable_Setter_set_Results.

type Assignable_asGetter

type Assignable_asGetter struct {
	*server.Call
}

Assignable_asGetter holds the state for a server call to Assignable.asGetter. See server.Call for documentation.

func (Assignable_asGetter) AllocResults

AllocResults allocates the results struct.

func (Assignable_asGetter) Args

Args returns the call's arguments.

type Assignable_asGetter_Params

type Assignable_asGetter_Params capnp.Struct

func NewAssignable_asGetter_Params

func NewAssignable_asGetter_Params(s *capnp.Segment) (Assignable_asGetter_Params, error)

func NewRootAssignable_asGetter_Params

func NewRootAssignable_asGetter_Params(s *capnp.Segment) (Assignable_asGetter_Params, error)

func ReadRootAssignable_asGetter_Params

func ReadRootAssignable_asGetter_Params(msg *capnp.Message) (Assignable_asGetter_Params, error)

func (Assignable_asGetter_Params) DecodeFromPtr

func (Assignable_asGetter_Params) EncodeAsPtr

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

func (Assignable_asGetter_Params) IsValid

func (s Assignable_asGetter_Params) IsValid() bool

func (Assignable_asGetter_Params) Message

func (Assignable_asGetter_Params) Segment

func (Assignable_asGetter_Params) String

func (Assignable_asGetter_Params) ToPtr

type Assignable_asGetter_Params_Future

type Assignable_asGetter_Params_Future struct{ *capnp.Future }

Assignable_asGetter_Params_Future is a wrapper for a Assignable_asGetter_Params promised by a client call.

func (Assignable_asGetter_Params_Future) Struct

type Assignable_asGetter_Params_List

type Assignable_asGetter_Params_List = capnp.StructList[Assignable_asGetter_Params]

Assignable_asGetter_Params_List is a list of Assignable_asGetter_Params.

func NewAssignable_asGetter_Params_List

func NewAssignable_asGetter_Params_List(s *capnp.Segment, sz int32) (Assignable_asGetter_Params_List, error)

NewAssignable_asGetter_Params creates a new list of Assignable_asGetter_Params.

type Assignable_asGetter_Results

type Assignable_asGetter_Results capnp.Struct

func NewAssignable_asGetter_Results

func NewAssignable_asGetter_Results(s *capnp.Segment) (Assignable_asGetter_Results, error)

func NewRootAssignable_asGetter_Results

func NewRootAssignable_asGetter_Results(s *capnp.Segment) (Assignable_asGetter_Results, error)

func ReadRootAssignable_asGetter_Results

func ReadRootAssignable_asGetter_Results(msg *capnp.Message) (Assignable_asGetter_Results, error)

func (Assignable_asGetter_Results) DecodeFromPtr

func (Assignable_asGetter_Results) EncodeAsPtr

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

func (Assignable_asGetter_Results) Getter

func (Assignable_asGetter_Results) HasGetter

func (s Assignable_asGetter_Results) HasGetter() bool

func (Assignable_asGetter_Results) IsValid

func (s Assignable_asGetter_Results) IsValid() bool

func (Assignable_asGetter_Results) Message

func (Assignable_asGetter_Results) Segment

func (Assignable_asGetter_Results) SetGetter

func (Assignable_asGetter_Results) String

func (Assignable_asGetter_Results) ToPtr

type Assignable_asGetter_Results_Future

type Assignable_asGetter_Results_Future struct{ *capnp.Future }

Assignable_asGetter_Results_Future is a wrapper for a Assignable_asGetter_Results promised by a client call.

func (Assignable_asGetter_Results_Future) Getter

func (Assignable_asGetter_Results_Future) Struct

type Assignable_asGetter_Results_List

type Assignable_asGetter_Results_List = capnp.StructList[Assignable_asGetter_Results]

Assignable_asGetter_Results_List is a list of Assignable_asGetter_Results.

func NewAssignable_asGetter_Results_List

func NewAssignable_asGetter_Results_List(s *capnp.Segment, sz int32) (Assignable_asGetter_Results_List, error)

NewAssignable_asGetter_Results creates a new list of Assignable_asGetter_Results.

type Assignable_asSetter

type Assignable_asSetter struct {
	*server.Call
}

Assignable_asSetter holds the state for a server call to Assignable.asSetter. See server.Call for documentation.

func (Assignable_asSetter) AllocResults

AllocResults allocates the results struct.

func (Assignable_asSetter) Args

Args returns the call's arguments.

type Assignable_asSetter_Params

type Assignable_asSetter_Params capnp.Struct

func NewAssignable_asSetter_Params

func NewAssignable_asSetter_Params(s *capnp.Segment) (Assignable_asSetter_Params, error)

func NewRootAssignable_asSetter_Params

func NewRootAssignable_asSetter_Params(s *capnp.Segment) (Assignable_asSetter_Params, error)

func ReadRootAssignable_asSetter_Params

func ReadRootAssignable_asSetter_Params(msg *capnp.Message) (Assignable_asSetter_Params, error)

func (Assignable_asSetter_Params) DecodeFromPtr

func (Assignable_asSetter_Params) EncodeAsPtr

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

func (Assignable_asSetter_Params) IsValid

func (s Assignable_asSetter_Params) IsValid() bool

func (Assignable_asSetter_Params) Message

func (Assignable_asSetter_Params) Segment

func (Assignable_asSetter_Params) String

func (Assignable_asSetter_Params) ToPtr

type Assignable_asSetter_Params_Future

type Assignable_asSetter_Params_Future struct{ *capnp.Future }

Assignable_asSetter_Params_Future is a wrapper for a Assignable_asSetter_Params promised by a client call.

func (Assignable_asSetter_Params_Future) Struct

type Assignable_asSetter_Params_List

type Assignable_asSetter_Params_List = capnp.StructList[Assignable_asSetter_Params]

Assignable_asSetter_Params_List is a list of Assignable_asSetter_Params.

func NewAssignable_asSetter_Params_List

func NewAssignable_asSetter_Params_List(s *capnp.Segment, sz int32) (Assignable_asSetter_Params_List, error)

NewAssignable_asSetter_Params creates a new list of Assignable_asSetter_Params.

type Assignable_asSetter_Results

type Assignable_asSetter_Results capnp.Struct

func NewAssignable_asSetter_Results

func NewAssignable_asSetter_Results(s *capnp.Segment) (Assignable_asSetter_Results, error)

func NewRootAssignable_asSetter_Results

func NewRootAssignable_asSetter_Results(s *capnp.Segment) (Assignable_asSetter_Results, error)

func ReadRootAssignable_asSetter_Results

func ReadRootAssignable_asSetter_Results(msg *capnp.Message) (Assignable_asSetter_Results, error)

func (Assignable_asSetter_Results) DecodeFromPtr

func (Assignable_asSetter_Results) EncodeAsPtr

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

func (Assignable_asSetter_Results) HasSetter

func (s Assignable_asSetter_Results) HasSetter() bool

func (Assignable_asSetter_Results) IsValid

func (s Assignable_asSetter_Results) IsValid() bool

func (Assignable_asSetter_Results) Message

func (Assignable_asSetter_Results) Segment

func (Assignable_asSetter_Results) SetSetter

func (Assignable_asSetter_Results) Setter

func (Assignable_asSetter_Results) String

func (Assignable_asSetter_Results) ToPtr

type Assignable_asSetter_Results_Future

type Assignable_asSetter_Results_Future struct{ *capnp.Future }

Assignable_asSetter_Results_Future is a wrapper for a Assignable_asSetter_Results promised by a client call.

func (Assignable_asSetter_Results_Future) Setter

func (Assignable_asSetter_Results_Future) Struct

type Assignable_asSetter_Results_List

type Assignable_asSetter_Results_List = capnp.StructList[Assignable_asSetter_Results]

Assignable_asSetter_Results_List is a list of Assignable_asSetter_Results.

func NewAssignable_asSetter_Results_List

func NewAssignable_asSetter_Results_List(s *capnp.Segment, sz int32) (Assignable_asSetter_Results_List, error)

NewAssignable_asSetter_Results creates a new list of Assignable_asSetter_Results.

type Assignable_get

type Assignable_get struct {
	*server.Call
}

Assignable_get holds the state for a server call to Assignable.get. See server.Call for documentation.

func (Assignable_get) AllocResults

func (c Assignable_get) AllocResults() (Assignable_get_Results, error)

AllocResults allocates the results struct.

func (Assignable_get) Args

Args returns the call's arguments.

type Assignable_get_Params

type Assignable_get_Params capnp.Struct

func NewAssignable_get_Params

func NewAssignable_get_Params(s *capnp.Segment) (Assignable_get_Params, error)

func NewRootAssignable_get_Params

func NewRootAssignable_get_Params(s *capnp.Segment) (Assignable_get_Params, error)

func ReadRootAssignable_get_Params

func ReadRootAssignable_get_Params(msg *capnp.Message) (Assignable_get_Params, error)

func (Assignable_get_Params) DecodeFromPtr

func (Assignable_get_Params) EncodeAsPtr

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

func (Assignable_get_Params) IsValid

func (s Assignable_get_Params) IsValid() bool

func (Assignable_get_Params) Message

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

func (Assignable_get_Params) Segment

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

func (Assignable_get_Params) String

func (s Assignable_get_Params) String() string

func (Assignable_get_Params) ToPtr

func (s Assignable_get_Params) ToPtr() capnp.Ptr

type Assignable_get_Params_Future

type Assignable_get_Params_Future struct{ *capnp.Future }

Assignable_get_Params_Future is a wrapper for a Assignable_get_Params promised by a client call.

func (Assignable_get_Params_Future) Struct

type Assignable_get_Params_List

type Assignable_get_Params_List = capnp.StructList[Assignable_get_Params]

Assignable_get_Params_List is a list of Assignable_get_Params.

func NewAssignable_get_Params_List

func NewAssignable_get_Params_List(s *capnp.Segment, sz int32) (Assignable_get_Params_List, error)

NewAssignable_get_Params creates a new list of Assignable_get_Params.

type Assignable_get_Results

type Assignable_get_Results capnp.Struct

func NewAssignable_get_Results

func NewAssignable_get_Results(s *capnp.Segment) (Assignable_get_Results, error)

func NewRootAssignable_get_Results

func NewRootAssignable_get_Results(s *capnp.Segment) (Assignable_get_Results, error)

func ReadRootAssignable_get_Results

func ReadRootAssignable_get_Results(msg *capnp.Message) (Assignable_get_Results, error)

func (Assignable_get_Results) DecodeFromPtr

func (Assignable_get_Results) EncodeAsPtr

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

func (Assignable_get_Results) HasSetter

func (s Assignable_get_Results) HasSetter() bool

func (Assignable_get_Results) HasValue

func (s Assignable_get_Results) HasValue() bool

func (Assignable_get_Results) IsValid

func (s Assignable_get_Results) IsValid() bool

func (Assignable_get_Results) Message

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

func (Assignable_get_Results) Segment

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

func (Assignable_get_Results) SetSetter

func (Assignable_get_Results) SetValue

func (s Assignable_get_Results) SetValue(v capnp.Ptr) error

func (Assignable_get_Results) Setter

func (Assignable_get_Results) String

func (s Assignable_get_Results) String() string

func (Assignable_get_Results) ToPtr

func (s Assignable_get_Results) ToPtr() capnp.Ptr

func (Assignable_get_Results) Value

func (s Assignable_get_Results) Value() (capnp.Ptr, error)

type Assignable_get_Results_Future

type Assignable_get_Results_Future struct{ *capnp.Future }

Assignable_get_Results_Future is a wrapper for a Assignable_get_Results promised by a client call.

func (Assignable_get_Results_Future) Setter

func (Assignable_get_Results_Future) Struct

func (Assignable_get_Results_Future) Value

type Assignable_get_Results_List

type Assignable_get_Results_List = capnp.StructList[Assignable_get_Results]

Assignable_get_Results_List is a list of Assignable_get_Results.

func NewAssignable_get_Results_List

func NewAssignable_get_Results_List(s *capnp.Segment, sz int32) (Assignable_get_Results_List, error)

NewAssignable_get_Results creates a new list of Assignable_get_Results.

type Blob

type Blob capnp.Client

func Blob_ServerToClient

func Blob_ServerToClient(s Blob_Server) Blob

Blob_ServerToClient creates a new Client from an implementation of Blob_Server. The caller is responsible for calling Release on the returned Client.

func (Blob) AddRef

func (c Blob) AddRef() Blob

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 (Blob) DecodeFromPtr

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

func (Blob) EncodeAsPtr

func (c Blob) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Blob) GetFlowLimiter

func (c Blob) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Blob) IsSame

func (c Blob) IsSame(other Blob) 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 (Blob) IsValid

func (c Blob) 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 (Blob) Release

func (c Blob) 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 (Blob) Resolve

func (c Blob) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (Blob) SetFlowLimiter

func (c Blob) 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 (Blob) String

func (c Blob) 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.

type Blob_List

type Blob_List = capnp.CapList[Blob]

Blob_List is a list of Blob.

func NewBlob_List

func NewBlob_List(s *capnp.Segment, sz int32) (Blob_List, error)

NewBlob creates a new list of Blob.

type Blob_Server

type Blob_Server interface {
	GetSize(context.Context, Blob_getSize) error

	WriteTo(context.Context, Blob_writeTo) error

	GetSlice(context.Context, Blob_getSlice) error
}

type Blob_getSize

type Blob_getSize struct {
	*server.Call
}

Blob_getSize holds the state for a server call to Blob.getSize. See server.Call for documentation.

func (Blob_getSize) AllocResults

func (c Blob_getSize) AllocResults() (Blob_getSize_Results, error)

AllocResults allocates the results struct.

func (Blob_getSize) Args

Args returns the call's arguments.

type Blob_getSize_Params

type Blob_getSize_Params capnp.Struct

func NewBlob_getSize_Params

func NewBlob_getSize_Params(s *capnp.Segment) (Blob_getSize_Params, error)

func NewRootBlob_getSize_Params

func NewRootBlob_getSize_Params(s *capnp.Segment) (Blob_getSize_Params, error)

func ReadRootBlob_getSize_Params

func ReadRootBlob_getSize_Params(msg *capnp.Message) (Blob_getSize_Params, error)

func (Blob_getSize_Params) DecodeFromPtr

func (Blob_getSize_Params) EncodeAsPtr

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

func (Blob_getSize_Params) IsValid

func (s Blob_getSize_Params) IsValid() bool

func (Blob_getSize_Params) Message

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

func (Blob_getSize_Params) Segment

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

func (Blob_getSize_Params) String

func (s Blob_getSize_Params) String() string

func (Blob_getSize_Params) ToPtr

func (s Blob_getSize_Params) ToPtr() capnp.Ptr

type Blob_getSize_Params_Future

type Blob_getSize_Params_Future struct{ *capnp.Future }

Blob_getSize_Params_Future is a wrapper for a Blob_getSize_Params promised by a client call.

func (Blob_getSize_Params_Future) Struct

type Blob_getSize_Params_List

type Blob_getSize_Params_List = capnp.StructList[Blob_getSize_Params]

Blob_getSize_Params_List is a list of Blob_getSize_Params.

func NewBlob_getSize_Params_List

func NewBlob_getSize_Params_List(s *capnp.Segment, sz int32) (Blob_getSize_Params_List, error)

NewBlob_getSize_Params creates a new list of Blob_getSize_Params.

type Blob_getSize_Results

type Blob_getSize_Results capnp.Struct

func NewBlob_getSize_Results

func NewBlob_getSize_Results(s *capnp.Segment) (Blob_getSize_Results, error)

func NewRootBlob_getSize_Results

func NewRootBlob_getSize_Results(s *capnp.Segment) (Blob_getSize_Results, error)

func ReadRootBlob_getSize_Results

func ReadRootBlob_getSize_Results(msg *capnp.Message) (Blob_getSize_Results, error)

func (Blob_getSize_Results) DecodeFromPtr

func (Blob_getSize_Results) EncodeAsPtr

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

func (Blob_getSize_Results) IsValid

func (s Blob_getSize_Results) IsValid() bool

func (Blob_getSize_Results) Message

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

func (Blob_getSize_Results) Segment

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

func (Blob_getSize_Results) SetSize

func (s Blob_getSize_Results) SetSize(v uint64)

func (Blob_getSize_Results) Size

func (s Blob_getSize_Results) Size() uint64

func (Blob_getSize_Results) String

func (s Blob_getSize_Results) String() string

func (Blob_getSize_Results) ToPtr

func (s Blob_getSize_Results) ToPtr() capnp.Ptr

type Blob_getSize_Results_Future

type Blob_getSize_Results_Future struct{ *capnp.Future }

Blob_getSize_Results_Future is a wrapper for a Blob_getSize_Results promised by a client call.

func (Blob_getSize_Results_Future) Struct

type Blob_getSize_Results_List

type Blob_getSize_Results_List = capnp.StructList[Blob_getSize_Results]

Blob_getSize_Results_List is a list of Blob_getSize_Results.

func NewBlob_getSize_Results_List

func NewBlob_getSize_Results_List(s *capnp.Segment, sz int32) (Blob_getSize_Results_List, error)

NewBlob_getSize_Results creates a new list of Blob_getSize_Results.

type Blob_getSlice

type Blob_getSlice struct {
	*server.Call
}

Blob_getSlice holds the state for a server call to Blob.getSlice. See server.Call for documentation.

func (Blob_getSlice) AllocResults

func (c Blob_getSlice) AllocResults() (Blob_getSlice_Results, error)

AllocResults allocates the results struct.

func (Blob_getSlice) Args

Args returns the call's arguments.

type Blob_getSlice_Params

type Blob_getSlice_Params capnp.Struct

func NewBlob_getSlice_Params

func NewBlob_getSlice_Params(s *capnp.Segment) (Blob_getSlice_Params, error)

func NewRootBlob_getSlice_Params

func NewRootBlob_getSlice_Params(s *capnp.Segment) (Blob_getSlice_Params, error)

func ReadRootBlob_getSlice_Params

func ReadRootBlob_getSlice_Params(msg *capnp.Message) (Blob_getSlice_Params, error)

func (Blob_getSlice_Params) DecodeFromPtr

func (Blob_getSlice_Params) EncodeAsPtr

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

func (Blob_getSlice_Params) IsValid

func (s Blob_getSlice_Params) IsValid() bool

func (Blob_getSlice_Params) Message

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

func (Blob_getSlice_Params) Offset

func (s Blob_getSlice_Params) Offset() uint64

func (Blob_getSlice_Params) Segment

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

func (Blob_getSlice_Params) SetOffset

func (s Blob_getSlice_Params) SetOffset(v uint64)

func (Blob_getSlice_Params) SetSize

func (s Blob_getSlice_Params) SetSize(v uint32)

func (Blob_getSlice_Params) Size

func (s Blob_getSlice_Params) Size() uint32

func (Blob_getSlice_Params) String

func (s Blob_getSlice_Params) String() string

func (Blob_getSlice_Params) ToPtr

func (s Blob_getSlice_Params) ToPtr() capnp.Ptr

type Blob_getSlice_Params_Future

type Blob_getSlice_Params_Future struct{ *capnp.Future }

Blob_getSlice_Params_Future is a wrapper for a Blob_getSlice_Params promised by a client call.

func (Blob_getSlice_Params_Future) Struct

type Blob_getSlice_Params_List

type Blob_getSlice_Params_List = capnp.StructList[Blob_getSlice_Params]

Blob_getSlice_Params_List is a list of Blob_getSlice_Params.

func NewBlob_getSlice_Params_List

func NewBlob_getSlice_Params_List(s *capnp.Segment, sz int32) (Blob_getSlice_Params_List, error)

NewBlob_getSlice_Params creates a new list of Blob_getSlice_Params.

type Blob_getSlice_Results

type Blob_getSlice_Results capnp.Struct

func NewBlob_getSlice_Results

func NewBlob_getSlice_Results(s *capnp.Segment) (Blob_getSlice_Results, error)

func NewRootBlob_getSlice_Results

func NewRootBlob_getSlice_Results(s *capnp.Segment) (Blob_getSlice_Results, error)

func ReadRootBlob_getSlice_Results

func ReadRootBlob_getSlice_Results(msg *capnp.Message) (Blob_getSlice_Results, error)

func (Blob_getSlice_Results) Data

func (s Blob_getSlice_Results) Data() ([]byte, error)

func (Blob_getSlice_Results) DecodeFromPtr

func (Blob_getSlice_Results) EncodeAsPtr

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

func (Blob_getSlice_Results) HasData

func (s Blob_getSlice_Results) HasData() bool

func (Blob_getSlice_Results) IsValid

func (s Blob_getSlice_Results) IsValid() bool

func (Blob_getSlice_Results) Message

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

func (Blob_getSlice_Results) Segment

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

func (Blob_getSlice_Results) SetData

func (s Blob_getSlice_Results) SetData(v []byte) error

func (Blob_getSlice_Results) String

func (s Blob_getSlice_Results) String() string

func (Blob_getSlice_Results) ToPtr

func (s Blob_getSlice_Results) ToPtr() capnp.Ptr

type Blob_getSlice_Results_Future

type Blob_getSlice_Results_Future struct{ *capnp.Future }

Blob_getSlice_Results_Future is a wrapper for a Blob_getSlice_Results promised by a client call.

func (Blob_getSlice_Results_Future) Struct

type Blob_getSlice_Results_List

type Blob_getSlice_Results_List = capnp.StructList[Blob_getSlice_Results]

Blob_getSlice_Results_List is a list of Blob_getSlice_Results.

func NewBlob_getSlice_Results_List

func NewBlob_getSlice_Results_List(s *capnp.Segment, sz int32) (Blob_getSlice_Results_List, error)

NewBlob_getSlice_Results creates a new list of Blob_getSlice_Results.

type Blob_writeTo

type Blob_writeTo struct {
	*server.Call
}

Blob_writeTo holds the state for a server call to Blob.writeTo. See server.Call for documentation.

func (Blob_writeTo) AllocResults

func (c Blob_writeTo) AllocResults() (Blob_writeTo_Results, error)

AllocResults allocates the results struct.

func (Blob_writeTo) Args

Args returns the call's arguments.

type Blob_writeTo_Params

type Blob_writeTo_Params capnp.Struct

func NewBlob_writeTo_Params

func NewBlob_writeTo_Params(s *capnp.Segment) (Blob_writeTo_Params, error)

func NewRootBlob_writeTo_Params

func NewRootBlob_writeTo_Params(s *capnp.Segment) (Blob_writeTo_Params, error)

func ReadRootBlob_writeTo_Params

func ReadRootBlob_writeTo_Params(msg *capnp.Message) (Blob_writeTo_Params, error)

func (Blob_writeTo_Params) DecodeFromPtr

func (Blob_writeTo_Params) EncodeAsPtr

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

func (Blob_writeTo_Params) HasStream

func (s Blob_writeTo_Params) HasStream() bool

func (Blob_writeTo_Params) IsValid

func (s Blob_writeTo_Params) IsValid() bool

func (Blob_writeTo_Params) Message

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

func (Blob_writeTo_Params) Segment

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

func (Blob_writeTo_Params) SetStartAtOffset

func (s Blob_writeTo_Params) SetStartAtOffset(v uint64)

func (Blob_writeTo_Params) SetStream

func (s Blob_writeTo_Params) SetStream(v ByteStream) error

func (Blob_writeTo_Params) StartAtOffset

func (s Blob_writeTo_Params) StartAtOffset() uint64

func (Blob_writeTo_Params) Stream

func (s Blob_writeTo_Params) Stream() ByteStream

func (Blob_writeTo_Params) String

func (s Blob_writeTo_Params) String() string

func (Blob_writeTo_Params) ToPtr

func (s Blob_writeTo_Params) ToPtr() capnp.Ptr

type Blob_writeTo_Params_Future

type Blob_writeTo_Params_Future struct{ *capnp.Future }

Blob_writeTo_Params_Future is a wrapper for a Blob_writeTo_Params promised by a client call.

func (Blob_writeTo_Params_Future) Stream

func (Blob_writeTo_Params_Future) Struct

type Blob_writeTo_Params_List

type Blob_writeTo_Params_List = capnp.StructList[Blob_writeTo_Params]

Blob_writeTo_Params_List is a list of Blob_writeTo_Params.

func NewBlob_writeTo_Params_List

func NewBlob_writeTo_Params_List(s *capnp.Segment, sz int32) (Blob_writeTo_Params_List, error)

NewBlob_writeTo_Params creates a new list of Blob_writeTo_Params.

type Blob_writeTo_Results

type Blob_writeTo_Results capnp.Struct

func NewBlob_writeTo_Results

func NewBlob_writeTo_Results(s *capnp.Segment) (Blob_writeTo_Results, error)

func NewRootBlob_writeTo_Results

func NewRootBlob_writeTo_Results(s *capnp.Segment) (Blob_writeTo_Results, error)

func ReadRootBlob_writeTo_Results

func ReadRootBlob_writeTo_Results(msg *capnp.Message) (Blob_writeTo_Results, error)

func (Blob_writeTo_Results) DecodeFromPtr

func (Blob_writeTo_Results) EncodeAsPtr

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

func (Blob_writeTo_Results) Handle

func (s Blob_writeTo_Results) Handle() Handle

func (Blob_writeTo_Results) HasHandle

func (s Blob_writeTo_Results) HasHandle() bool

func (Blob_writeTo_Results) IsValid

func (s Blob_writeTo_Results) IsValid() bool

func (Blob_writeTo_Results) Message

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

func (Blob_writeTo_Results) Segment

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

func (Blob_writeTo_Results) SetHandle

func (s Blob_writeTo_Results) SetHandle(v Handle) error

func (Blob_writeTo_Results) String

func (s Blob_writeTo_Results) String() string

func (Blob_writeTo_Results) ToPtr

func (s Blob_writeTo_Results) ToPtr() capnp.Ptr

type Blob_writeTo_Results_Future

type Blob_writeTo_Results_Future struct{ *capnp.Future }

Blob_writeTo_Results_Future is a wrapper for a Blob_writeTo_Results promised by a client call.

func (Blob_writeTo_Results_Future) Handle

func (Blob_writeTo_Results_Future) Struct

type Blob_writeTo_Results_List

type Blob_writeTo_Results_List = capnp.StructList[Blob_writeTo_Results]

Blob_writeTo_Results_List is a list of Blob_writeTo_Results.

func NewBlob_writeTo_Results_List

func NewBlob_writeTo_Results_List(s *capnp.Segment, sz int32) (Blob_writeTo_Results_List, error)

NewBlob_writeTo_Results creates a new list of Blob_writeTo_Results.

type ByteStream

type ByteStream capnp.Client

func ByteStream_ServerToClient

func ByteStream_ServerToClient(s ByteStream_Server) ByteStream

ByteStream_ServerToClient creates a new Client from an implementation of ByteStream_Server. The caller is responsible for calling Release on the returned Client.

func (ByteStream) AddRef

func (c ByteStream) AddRef() ByteStream

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 (ByteStream) DecodeFromPtr

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

func (ByteStream) EncodeAsPtr

func (c ByteStream) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (ByteStream) GetFlowLimiter

func (c ByteStream) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (ByteStream) IsSame

func (c ByteStream) IsSame(other ByteStream) 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 (ByteStream) IsValid

func (c ByteStream) 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 (ByteStream) Release

func (c ByteStream) 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 (ByteStream) Resolve

func (c ByteStream) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (ByteStream) SetFlowLimiter

func (c ByteStream) 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 (ByteStream) String

func (c ByteStream) 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 (ByteStream) Write

type ByteStream_List

type ByteStream_List = capnp.CapList[ByteStream]

ByteStream_List is a list of ByteStream.

func NewByteStream_List

func NewByteStream_List(s *capnp.Segment, sz int32) (ByteStream_List, error)

NewByteStream creates a new list of ByteStream.

type ByteStream_done

type ByteStream_done struct {
	*server.Call
}

ByteStream_done holds the state for a server call to ByteStream.done. See server.Call for documentation.

func (ByteStream_done) AllocResults

func (c ByteStream_done) AllocResults() (ByteStream_done_Results, error)

AllocResults allocates the results struct.

func (ByteStream_done) Args

Args returns the call's arguments.

type ByteStream_done_Params

type ByteStream_done_Params capnp.Struct

func NewByteStream_done_Params

func NewByteStream_done_Params(s *capnp.Segment) (ByteStream_done_Params, error)

func NewRootByteStream_done_Params

func NewRootByteStream_done_Params(s *capnp.Segment) (ByteStream_done_Params, error)

func ReadRootByteStream_done_Params

func ReadRootByteStream_done_Params(msg *capnp.Message) (ByteStream_done_Params, error)

func (ByteStream_done_Params) DecodeFromPtr

func (ByteStream_done_Params) EncodeAsPtr

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

func (ByteStream_done_Params) IsValid

func (s ByteStream_done_Params) IsValid() bool

func (ByteStream_done_Params) Message

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

func (ByteStream_done_Params) Segment

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

func (ByteStream_done_Params) String

func (s ByteStream_done_Params) String() string

func (ByteStream_done_Params) ToPtr

func (s ByteStream_done_Params) ToPtr() capnp.Ptr

type ByteStream_done_Params_Future

type ByteStream_done_Params_Future struct{ *capnp.Future }

ByteStream_done_Params_Future is a wrapper for a ByteStream_done_Params promised by a client call.

func (ByteStream_done_Params_Future) Struct

type ByteStream_done_Params_List

type ByteStream_done_Params_List = capnp.StructList[ByteStream_done_Params]

ByteStream_done_Params_List is a list of ByteStream_done_Params.

func NewByteStream_done_Params_List

func NewByteStream_done_Params_List(s *capnp.Segment, sz int32) (ByteStream_done_Params_List, error)

NewByteStream_done_Params creates a new list of ByteStream_done_Params.

type ByteStream_done_Results

type ByteStream_done_Results capnp.Struct

func NewByteStream_done_Results

func NewByteStream_done_Results(s *capnp.Segment) (ByteStream_done_Results, error)

func NewRootByteStream_done_Results

func NewRootByteStream_done_Results(s *capnp.Segment) (ByteStream_done_Results, error)

func ReadRootByteStream_done_Results

func ReadRootByteStream_done_Results(msg *capnp.Message) (ByteStream_done_Results, error)

func (ByteStream_done_Results) DecodeFromPtr

func (ByteStream_done_Results) EncodeAsPtr

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

func (ByteStream_done_Results) IsValid

func (s ByteStream_done_Results) IsValid() bool

func (ByteStream_done_Results) Message

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

func (ByteStream_done_Results) Segment

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

func (ByteStream_done_Results) String

func (s ByteStream_done_Results) String() string

func (ByteStream_done_Results) ToPtr

func (s ByteStream_done_Results) ToPtr() capnp.Ptr

type ByteStream_done_Results_Future

type ByteStream_done_Results_Future struct{ *capnp.Future }

ByteStream_done_Results_Future is a wrapper for a ByteStream_done_Results promised by a client call.

func (ByteStream_done_Results_Future) Struct

type ByteStream_done_Results_List

type ByteStream_done_Results_List = capnp.StructList[ByteStream_done_Results]

ByteStream_done_Results_List is a list of ByteStream_done_Results.

func NewByteStream_done_Results_List

func NewByteStream_done_Results_List(s *capnp.Segment, sz int32) (ByteStream_done_Results_List, error)

NewByteStream_done_Results creates a new list of ByteStream_done_Results.

type ByteStream_expectSize

type ByteStream_expectSize struct {
	*server.Call
}

ByteStream_expectSize holds the state for a server call to ByteStream.expectSize. See server.Call for documentation.

func (ByteStream_expectSize) AllocResults

AllocResults allocates the results struct.

func (ByteStream_expectSize) Args

Args returns the call's arguments.

type ByteStream_expectSize_Params

type ByteStream_expectSize_Params capnp.Struct

func NewByteStream_expectSize_Params

func NewByteStream_expectSize_Params(s *capnp.Segment) (ByteStream_expectSize_Params, error)

func NewRootByteStream_expectSize_Params

func NewRootByteStream_expectSize_Params(s *capnp.Segment) (ByteStream_expectSize_Params, error)

func ReadRootByteStream_expectSize_Params

func ReadRootByteStream_expectSize_Params(msg *capnp.Message) (ByteStream_expectSize_Params, error)

func (ByteStream_expectSize_Params) DecodeFromPtr

func (ByteStream_expectSize_Params) EncodeAsPtr

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

func (ByteStream_expectSize_Params) IsValid

func (s ByteStream_expectSize_Params) IsValid() bool

func (ByteStream_expectSize_Params) Message

func (ByteStream_expectSize_Params) Segment

func (ByteStream_expectSize_Params) SetSize

func (s ByteStream_expectSize_Params) SetSize(v uint64)

func (ByteStream_expectSize_Params) Size

func (ByteStream_expectSize_Params) String

func (ByteStream_expectSize_Params) ToPtr

type ByteStream_expectSize_Params_Future

type ByteStream_expectSize_Params_Future struct{ *capnp.Future }

ByteStream_expectSize_Params_Future is a wrapper for a ByteStream_expectSize_Params promised by a client call.

func (ByteStream_expectSize_Params_Future) Struct

type ByteStream_expectSize_Params_List

type ByteStream_expectSize_Params_List = capnp.StructList[ByteStream_expectSize_Params]

ByteStream_expectSize_Params_List is a list of ByteStream_expectSize_Params.

func NewByteStream_expectSize_Params_List

func NewByteStream_expectSize_Params_List(s *capnp.Segment, sz int32) (ByteStream_expectSize_Params_List, error)

NewByteStream_expectSize_Params creates a new list of ByteStream_expectSize_Params.

type ByteStream_expectSize_Results

type ByteStream_expectSize_Results capnp.Struct

func NewByteStream_expectSize_Results

func NewByteStream_expectSize_Results(s *capnp.Segment) (ByteStream_expectSize_Results, error)

func NewRootByteStream_expectSize_Results

func NewRootByteStream_expectSize_Results(s *capnp.Segment) (ByteStream_expectSize_Results, error)

func ReadRootByteStream_expectSize_Results

func ReadRootByteStream_expectSize_Results(msg *capnp.Message) (ByteStream_expectSize_Results, error)

func (ByteStream_expectSize_Results) DecodeFromPtr

func (ByteStream_expectSize_Results) EncodeAsPtr

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

func (ByteStream_expectSize_Results) IsValid

func (s ByteStream_expectSize_Results) IsValid() bool

func (ByteStream_expectSize_Results) Message

func (ByteStream_expectSize_Results) Segment

func (ByteStream_expectSize_Results) String

func (ByteStream_expectSize_Results) ToPtr

type ByteStream_expectSize_Results_Future

type ByteStream_expectSize_Results_Future struct{ *capnp.Future }

ByteStream_expectSize_Results_Future is a wrapper for a ByteStream_expectSize_Results promised by a client call.

func (ByteStream_expectSize_Results_Future) Struct

type ByteStream_expectSize_Results_List

type ByteStream_expectSize_Results_List = capnp.StructList[ByteStream_expectSize_Results]

ByteStream_expectSize_Results_List is a list of ByteStream_expectSize_Results.

func NewByteStream_expectSize_Results_List

func NewByteStream_expectSize_Results_List(s *capnp.Segment, sz int32) (ByteStream_expectSize_Results_List, error)

NewByteStream_expectSize_Results creates a new list of ByteStream_expectSize_Results.

type ByteStream_write

type ByteStream_write struct {
	*server.Call
}

ByteStream_write holds the state for a server call to ByteStream.write. See server.Call for documentation.

func (ByteStream_write) AllocResults

func (c ByteStream_write) AllocResults() (stream.StreamResult, error)

AllocResults allocates the results struct.

func (ByteStream_write) Args

Args returns the call's arguments.

type ByteStream_write_Params

type ByteStream_write_Params capnp.Struct

func NewByteStream_write_Params

func NewByteStream_write_Params(s *capnp.Segment) (ByteStream_write_Params, error)

func NewRootByteStream_write_Params

func NewRootByteStream_write_Params(s *capnp.Segment) (ByteStream_write_Params, error)

func ReadRootByteStream_write_Params

func ReadRootByteStream_write_Params(msg *capnp.Message) (ByteStream_write_Params, error)

func (ByteStream_write_Params) Data

func (s ByteStream_write_Params) Data() ([]byte, error)

func (ByteStream_write_Params) DecodeFromPtr

func (ByteStream_write_Params) EncodeAsPtr

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

func (ByteStream_write_Params) HasData

func (s ByteStream_write_Params) HasData() bool

func (ByteStream_write_Params) IsValid

func (s ByteStream_write_Params) IsValid() bool

func (ByteStream_write_Params) Message

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

func (ByteStream_write_Params) Segment

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

func (ByteStream_write_Params) SetData

func (s ByteStream_write_Params) SetData(v []byte) error

func (ByteStream_write_Params) String

func (s ByteStream_write_Params) String() string

func (ByteStream_write_Params) ToPtr

func (s ByteStream_write_Params) ToPtr() capnp.Ptr

type ByteStream_write_Params_Future

type ByteStream_write_Params_Future struct{ *capnp.Future }

ByteStream_write_Params_Future is a wrapper for a ByteStream_write_Params promised by a client call.

func (ByteStream_write_Params_Future) Struct

type ByteStream_write_Params_List

type ByteStream_write_Params_List = capnp.StructList[ByteStream_write_Params]

ByteStream_write_Params_List is a list of ByteStream_write_Params.

func NewByteStream_write_Params_List

func NewByteStream_write_Params_List(s *capnp.Segment, sz int32) (ByteStream_write_Params_List, error)

NewByteStream_write_Params creates a new list of ByteStream_write_Params.

type Handle

type Handle capnp.Client

func Handle_ServerToClient

func Handle_ServerToClient(s Handle_Server) Handle

Handle_ServerToClient creates a new Client from an implementation of Handle_Server. The caller is responsible for calling Release on the returned Client.

func (Handle) AddRef

func (c Handle) AddRef() Handle

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 (Handle) DecodeFromPtr

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

func (Handle) EncodeAsPtr

func (c Handle) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Handle) GetFlowLimiter

func (c Handle) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (Handle) IsSame

func (c Handle) IsSame(other Handle) 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 (Handle) IsValid

func (c Handle) 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 (Handle) Ping

func (Handle) Release

func (c Handle) 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 (Handle) Resolve

func (c Handle) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (Handle) SetFlowLimiter

func (c Handle) 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 (Handle) String

func (c Handle) 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.

type Handle_List

type Handle_List = capnp.CapList[Handle]

Handle_List is a list of Handle.

func NewHandle_List

func NewHandle_List(s *capnp.Segment, sz int32) (Handle_List, error)

NewHandle creates a new list of Handle.

type Handle_Server

type Handle_Server interface {
	Ping(context.Context, Handle_ping) error
}

type Handle_ping

type Handle_ping struct {
	*server.Call
}

Handle_ping holds the state for a server call to Handle.ping. See server.Call for documentation.

func (Handle_ping) AllocResults

func (c Handle_ping) AllocResults() (Handle_ping_Results, error)

AllocResults allocates the results struct.

func (Handle_ping) Args

Args returns the call's arguments.

type Handle_ping_Params

type Handle_ping_Params capnp.Struct

func NewHandle_ping_Params

func NewHandle_ping_Params(s *capnp.Segment) (Handle_ping_Params, error)

func NewRootHandle_ping_Params

func NewRootHandle_ping_Params(s *capnp.Segment) (Handle_ping_Params, error)

func ReadRootHandle_ping_Params

func ReadRootHandle_ping_Params(msg *capnp.Message) (Handle_ping_Params, error)

func (Handle_ping_Params) DecodeFromPtr

func (Handle_ping_Params) EncodeAsPtr

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

func (Handle_ping_Params) IsValid

func (s Handle_ping_Params) IsValid() bool

func (Handle_ping_Params) Message

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

func (Handle_ping_Params) Segment

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

func (Handle_ping_Params) String

func (s Handle_ping_Params) String() string

func (Handle_ping_Params) ToPtr

func (s Handle_ping_Params) ToPtr() capnp.Ptr

type Handle_ping_Params_Future

type Handle_ping_Params_Future struct{ *capnp.Future }

Handle_ping_Params_Future is a wrapper for a Handle_ping_Params promised by a client call.

func (Handle_ping_Params_Future) Struct

type Handle_ping_Params_List

type Handle_ping_Params_List = capnp.StructList[Handle_ping_Params]

Handle_ping_Params_List is a list of Handle_ping_Params.

func NewHandle_ping_Params_List

func NewHandle_ping_Params_List(s *capnp.Segment, sz int32) (Handle_ping_Params_List, error)

NewHandle_ping_Params creates a new list of Handle_ping_Params.

type Handle_ping_Results

type Handle_ping_Results capnp.Struct

func NewHandle_ping_Results

func NewHandle_ping_Results(s *capnp.Segment) (Handle_ping_Results, error)

func NewRootHandle_ping_Results

func NewRootHandle_ping_Results(s *capnp.Segment) (Handle_ping_Results, error)

func ReadRootHandle_ping_Results

func ReadRootHandle_ping_Results(msg *capnp.Message) (Handle_ping_Results, error)

func (Handle_ping_Results) DecodeFromPtr

func (Handle_ping_Results) EncodeAsPtr

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

func (Handle_ping_Results) IsValid

func (s Handle_ping_Results) IsValid() bool

func (Handle_ping_Results) Message

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

func (Handle_ping_Results) Segment

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

func (Handle_ping_Results) String

func (s Handle_ping_Results) String() string

func (Handle_ping_Results) ToPtr

func (s Handle_ping_Results) ToPtr() capnp.Ptr

type Handle_ping_Results_Future

type Handle_ping_Results_Future struct{ *capnp.Future }

Handle_ping_Results_Future is a wrapper for a Handle_ping_Results promised by a client call.

func (Handle_ping_Results_Future) Struct

type Handle_ping_Results_List

type Handle_ping_Results_List = capnp.StructList[Handle_ping_Results]

Handle_ping_Results_List is a list of Handle_ping_Results.

func NewHandle_ping_Results_List

func NewHandle_ping_Results_List(s *capnp.Segment, sz int32) (Handle_ping_Results_List, error)

NewHandle_ping_Results creates a new list of Handle_ping_Results.

type KeyValue

type KeyValue capnp.Struct

func NewKeyValue

func NewKeyValue(s *capnp.Segment) (KeyValue, error)

func NewRootKeyValue

func NewRootKeyValue(s *capnp.Segment) (KeyValue, error)

func ReadRootKeyValue

func ReadRootKeyValue(msg *capnp.Message) (KeyValue, error)

func (KeyValue) DecodeFromPtr

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

func (KeyValue) EncodeAsPtr

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

func (KeyValue) HasKey

func (s KeyValue) HasKey() bool

func (KeyValue) HasValue

func (s KeyValue) HasValue() bool

func (KeyValue) IsValid

func (s KeyValue) IsValid() bool

func (KeyValue) Key

func (s KeyValue) Key() (string, error)

func (KeyValue) KeyBytes

func (s KeyValue) KeyBytes() ([]byte, error)

func (KeyValue) Message

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

func (KeyValue) Segment

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

func (KeyValue) SetKey

func (s KeyValue) SetKey(v string) error

func (KeyValue) SetValue

func (s KeyValue) SetValue(v string) error

func (KeyValue) String

func (s KeyValue) String() string

func (KeyValue) ToPtr

func (s KeyValue) ToPtr() capnp.Ptr

func (KeyValue) Value

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

func (KeyValue) ValueBytes

func (s KeyValue) ValueBytes() ([]byte, error)

type KeyValue_Future

type KeyValue_Future struct{ *capnp.Future }

KeyValue_Future is a wrapper for a KeyValue promised by a client call.

func (KeyValue_Future) Struct

func (f KeyValue_Future) Struct() (KeyValue, error)

type KeyValue_List

type KeyValue_List = capnp.StructList[KeyValue]

KeyValue_List is a list of KeyValue.

func NewKeyValue_List

func NewKeyValue_List(s *capnp.Segment, sz int32) (KeyValue_List, error)

NewKeyValue creates a new list of KeyValue.

type LocalizedText

type LocalizedText capnp.Struct

func NewLocalizedText

func NewLocalizedText(s *capnp.Segment) (LocalizedText, error)

func NewRootLocalizedText

func NewRootLocalizedText(s *capnp.Segment) (LocalizedText, error)

func ReadRootLocalizedText

func ReadRootLocalizedText(msg *capnp.Message) (LocalizedText, error)

func (LocalizedText) DecodeFromPtr

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

func (LocalizedText) DefaultText

func (s LocalizedText) DefaultText() (string, error)

func (LocalizedText) DefaultTextBytes

func (s LocalizedText) DefaultTextBytes() ([]byte, error)

func (LocalizedText) EncodeAsPtr

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

func (LocalizedText) HasDefaultText

func (s LocalizedText) HasDefaultText() bool

func (LocalizedText) HasLocalizations

func (s LocalizedText) HasLocalizations() bool

func (LocalizedText) IsValid

func (s LocalizedText) IsValid() bool

func (LocalizedText) Localizations

func (LocalizedText) Message

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

func (LocalizedText) NewLocalizations

func (s LocalizedText) NewLocalizations(n int32) (LocalizedText_Localization_List, error)

NewLocalizations sets the localizations field to a newly allocated LocalizedText_Localization_List, preferring placement in s's segment.

func (LocalizedText) Segment

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

func (LocalizedText) SetDefaultText

func (s LocalizedText) SetDefaultText(v string) error

func (LocalizedText) SetLocalizations

func (s LocalizedText) SetLocalizations(v LocalizedText_Localization_List) error

func (LocalizedText) String

func (s LocalizedText) String() string

func (LocalizedText) ToPtr

func (s LocalizedText) ToPtr() capnp.Ptr

type LocalizedText_Future

type LocalizedText_Future struct{ *capnp.Future }

LocalizedText_Future is a wrapper for a LocalizedText promised by a client call.

func (LocalizedText_Future) Struct

type LocalizedText_List

type LocalizedText_List = capnp.StructList[LocalizedText]

LocalizedText_List is a list of LocalizedText.

func NewLocalizedText_List

func NewLocalizedText_List(s *capnp.Segment, sz int32) (LocalizedText_List, error)

NewLocalizedText creates a new list of LocalizedText.

type LocalizedText_Localization

type LocalizedText_Localization capnp.Struct

func NewLocalizedText_Localization

func NewLocalizedText_Localization(s *capnp.Segment) (LocalizedText_Localization, error)

func NewRootLocalizedText_Localization

func NewRootLocalizedText_Localization(s *capnp.Segment) (LocalizedText_Localization, error)

func ReadRootLocalizedText_Localization

func ReadRootLocalizedText_Localization(msg *capnp.Message) (LocalizedText_Localization, error)

func (LocalizedText_Localization) DecodeFromPtr

func (LocalizedText_Localization) EncodeAsPtr

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

func (LocalizedText_Localization) HasLocale

func (s LocalizedText_Localization) HasLocale() bool

func (LocalizedText_Localization) HasText

func (s LocalizedText_Localization) HasText() bool

func (LocalizedText_Localization) IsValid

func (s LocalizedText_Localization) IsValid() bool

func (LocalizedText_Localization) Locale

func (s LocalizedText_Localization) Locale() (string, error)

func (LocalizedText_Localization) LocaleBytes

func (s LocalizedText_Localization) LocaleBytes() ([]byte, error)

func (LocalizedText_Localization) Message

func (LocalizedText_Localization) Segment

func (LocalizedText_Localization) SetLocale

func (s LocalizedText_Localization) SetLocale(v string) error

func (LocalizedText_Localization) SetText

func (LocalizedText_Localization) String

func (LocalizedText_Localization) Text

func (LocalizedText_Localization) TextBytes

func (s LocalizedText_Localization) TextBytes() ([]byte, error)

func (LocalizedText_Localization) ToPtr

type LocalizedText_Localization_Future

type LocalizedText_Localization_Future struct{ *capnp.Future }

LocalizedText_Localization_Future is a wrapper for a LocalizedText_Localization promised by a client call.

func (LocalizedText_Localization_Future) Struct

type LocalizedText_Localization_List

type LocalizedText_Localization_List = capnp.StructList[LocalizedText_Localization]

LocalizedText_Localization_List is a list of LocalizedText_Localization.

func NewLocalizedText_Localization_List

func NewLocalizedText_Localization_List(s *capnp.Segment, sz int32) (LocalizedText_Localization_List, error)

NewLocalizedText_Localization creates a new list of LocalizedText_Localization.

type StaticAsset

type StaticAsset capnp.Client

func StaticAsset_ServerToClient

func StaticAsset_ServerToClient(s StaticAsset_Server) StaticAsset

StaticAsset_ServerToClient creates a new Client from an implementation of StaticAsset_Server. The caller is responsible for calling Release on the returned Client.

func (StaticAsset) AddRef

func (c StaticAsset) AddRef() StaticAsset

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 (StaticAsset) DecodeFromPtr

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

func (StaticAsset) EncodeAsPtr

func (c StaticAsset) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (StaticAsset) GetFlowLimiter

func (c StaticAsset) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (StaticAsset) IsSame

func (c StaticAsset) IsSame(other StaticAsset) 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 (StaticAsset) IsValid

func (c StaticAsset) 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 (StaticAsset) Release

func (c StaticAsset) 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 (StaticAsset) Resolve

func (c StaticAsset) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (StaticAsset) SetFlowLimiter

func (c StaticAsset) 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 (StaticAsset) String

func (c StaticAsset) 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.

type StaticAsset_List

type StaticAsset_List = capnp.CapList[StaticAsset]

StaticAsset_List is a list of StaticAsset.

func NewStaticAsset_List

func NewStaticAsset_List(s *capnp.Segment, sz int32) (StaticAsset_List, error)

NewStaticAsset creates a new list of StaticAsset.

type StaticAsset_Protocol

type StaticAsset_Protocol uint16
const (
	StaticAsset_Protocol_https StaticAsset_Protocol = 0
	StaticAsset_Protocol_http  StaticAsset_Protocol = 1
)

Values of StaticAsset_Protocol.

func StaticAsset_ProtocolFromString

func StaticAsset_ProtocolFromString(c string) StaticAsset_Protocol

StaticAsset_ProtocolFromString returns the enum value with a name, or the zero value if there's no such value.

func (StaticAsset_Protocol) String

func (c StaticAsset_Protocol) String() string

String returns the enum's constant name.

type StaticAsset_Protocol_List

type StaticAsset_Protocol_List = capnp.EnumList[StaticAsset_Protocol]

func NewStaticAsset_Protocol_List

func NewStaticAsset_Protocol_List(s *capnp.Segment, sz int32) (StaticAsset_Protocol_List, error)

type StaticAsset_Server

type StaticAsset_Server interface {
	GetUrl(context.Context, StaticAsset_getUrl) error
}

type StaticAsset_getUrl

type StaticAsset_getUrl struct {
	*server.Call
}

StaticAsset_getUrl holds the state for a server call to StaticAsset.getUrl. See server.Call for documentation.

func (StaticAsset_getUrl) AllocResults

AllocResults allocates the results struct.

func (StaticAsset_getUrl) Args

Args returns the call's arguments.

type StaticAsset_getUrl_Params

type StaticAsset_getUrl_Params capnp.Struct

func NewRootStaticAsset_getUrl_Params

func NewRootStaticAsset_getUrl_Params(s *capnp.Segment) (StaticAsset_getUrl_Params, error)

func NewStaticAsset_getUrl_Params

func NewStaticAsset_getUrl_Params(s *capnp.Segment) (StaticAsset_getUrl_Params, error)

func ReadRootStaticAsset_getUrl_Params

func ReadRootStaticAsset_getUrl_Params(msg *capnp.Message) (StaticAsset_getUrl_Params, error)

func (StaticAsset_getUrl_Params) DecodeFromPtr

func (StaticAsset_getUrl_Params) EncodeAsPtr

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

func (StaticAsset_getUrl_Params) IsValid

func (s StaticAsset_getUrl_Params) IsValid() bool

func (StaticAsset_getUrl_Params) Message

func (StaticAsset_getUrl_Params) Segment

func (StaticAsset_getUrl_Params) String

func (s StaticAsset_getUrl_Params) String() string

func (StaticAsset_getUrl_Params) ToPtr

type StaticAsset_getUrl_Params_Future

type StaticAsset_getUrl_Params_Future struct{ *capnp.Future }

StaticAsset_getUrl_Params_Future is a wrapper for a StaticAsset_getUrl_Params promised by a client call.

func (StaticAsset_getUrl_Params_Future) Struct

type StaticAsset_getUrl_Params_List

type StaticAsset_getUrl_Params_List = capnp.StructList[StaticAsset_getUrl_Params]

StaticAsset_getUrl_Params_List is a list of StaticAsset_getUrl_Params.

func NewStaticAsset_getUrl_Params_List

func NewStaticAsset_getUrl_Params_List(s *capnp.Segment, sz int32) (StaticAsset_getUrl_Params_List, error)

NewStaticAsset_getUrl_Params creates a new list of StaticAsset_getUrl_Params.

type StaticAsset_getUrl_Results

type StaticAsset_getUrl_Results capnp.Struct

func NewRootStaticAsset_getUrl_Results

func NewRootStaticAsset_getUrl_Results(s *capnp.Segment) (StaticAsset_getUrl_Results, error)

func NewStaticAsset_getUrl_Results

func NewStaticAsset_getUrl_Results(s *capnp.Segment) (StaticAsset_getUrl_Results, error)

func ReadRootStaticAsset_getUrl_Results

func ReadRootStaticAsset_getUrl_Results(msg *capnp.Message) (StaticAsset_getUrl_Results, error)

func (StaticAsset_getUrl_Results) DecodeFromPtr

func (StaticAsset_getUrl_Results) EncodeAsPtr

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

func (StaticAsset_getUrl_Results) HasHostPath

func (s StaticAsset_getUrl_Results) HasHostPath() bool

func (StaticAsset_getUrl_Results) HostPath

func (s StaticAsset_getUrl_Results) HostPath() (string, error)

func (StaticAsset_getUrl_Results) HostPathBytes

func (s StaticAsset_getUrl_Results) HostPathBytes() ([]byte, error)

func (StaticAsset_getUrl_Results) IsValid

func (s StaticAsset_getUrl_Results) IsValid() bool

func (StaticAsset_getUrl_Results) Message

func (StaticAsset_getUrl_Results) Protocol

func (StaticAsset_getUrl_Results) Segment

func (StaticAsset_getUrl_Results) SetHostPath

func (s StaticAsset_getUrl_Results) SetHostPath(v string) error

func (StaticAsset_getUrl_Results) SetProtocol

func (StaticAsset_getUrl_Results) String

func (StaticAsset_getUrl_Results) ToPtr

type StaticAsset_getUrl_Results_Future

type StaticAsset_getUrl_Results_Future struct{ *capnp.Future }

StaticAsset_getUrl_Results_Future is a wrapper for a StaticAsset_getUrl_Results promised by a client call.

func (StaticAsset_getUrl_Results_Future) Struct

type StaticAsset_getUrl_Results_List

type StaticAsset_getUrl_Results_List = capnp.StructList[StaticAsset_getUrl_Results]

StaticAsset_getUrl_Results_List is a list of StaticAsset_getUrl_Results.

func NewStaticAsset_getUrl_Results_List

func NewStaticAsset_getUrl_Results_List(s *capnp.Segment, sz int32) (StaticAsset_getUrl_Results_List, error)

NewStaticAsset_getUrl_Results creates a new list of StaticAsset_getUrl_Results.

Jump to

Keyboard shortcuts

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