Documentation ¶
Index ¶
- Constants
- func A_Methods(methods []server.Method, s A_Server) []server.Method
- func A_NewServer(s A_Server) *server.Server
- func RegisterSchema(reg *schemas.Registry)
- func X_Methods(methods []server.Method, s X_Server) []server.Method
- func X_NewServer(s X_Server) *server.Server
- func Y_Methods(methods []server.Method, s Y_Server) []server.Method
- func Y_NewServer(s Y_Server) *server.Server
- func Z_Methods(methods []server.Method, s Z_Server) []server.Method
- func Z_NewServer(s Z_Server) *server.Server
- type A
- func (c A) AddRef() A
- func (A) DecodeFromPtr(p capnp.Ptr) A
- func (c A) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c A) GetFlowLimiter() fc.FlowLimiter
- func (c A) IsSame(other A) bool
- func (c A) IsValid() bool
- func (c A) Method(ctx context.Context, params func(A_method_Params) error) (A_method_Results_Future, capnp.ReleaseFunc)
- func (c A) Release()
- func (c A) Resolve(ctx context.Context) error
- func (c A) SetFlowLimiter(lim fc.FlowLimiter)
- func (c A) String() string
- func (c A) WaitStreaming() error
- type A_List
- type A_Server
- type A_method
- type A_method_Params
- func (A_method_Params) DecodeFromPtr(p capnp.Ptr) A_method_Params
- func (s A_method_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s A_method_Params) HasParam() bool
- func (s A_method_Params) IsValid() bool
- func (s A_method_Params) Message() *capnp.Message
- func (s A_method_Params) Param() (string, error)
- func (s A_method_Params) ParamBytes() ([]byte, error)
- func (s A_method_Params) Segment() *capnp.Segment
- func (s A_method_Params) SetParam(v string) error
- func (s A_method_Params) String() string
- func (s A_method_Params) ToPtr() capnp.Ptr
- type A_method_Params_Future
- type A_method_Params_List
- type A_method_Results
- func (A_method_Results) DecodeFromPtr(p capnp.Ptr) A_method_Results
- func (s A_method_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s A_method_Results) HasRes() bool
- func (s A_method_Results) IsValid() bool
- func (s A_method_Results) Message() *capnp.Message
- func (s A_method_Results) Res() (string, error)
- func (s A_method_Results) ResBytes() ([]byte, error)
- func (s A_method_Results) Segment() *capnp.Segment
- func (s A_method_Results) SetRes(v string) error
- func (s A_method_Results) String() string
- func (s A_method_Results) ToPtr() capnp.Ptr
- type A_method_Results_Future
- type A_method_Results_List
- type S
- func (s S) C() X
- func (S) DecodeFromPtr(p capnp.Ptr) S
- func (s S) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s S) HasC() bool
- func (s S) IsValid() bool
- func (s S) Message() *capnp.Message
- func (s S) Segment() *capnp.Segment
- func (s S) SetC(v X) error
- func (s S) String() string
- func (s S) ToPtr() capnp.Ptr
- type S_Future
- type S_List
- type X
- func (c X) AddRef() X
- func (X) DecodeFromPtr(p capnp.Ptr) X
- func (c X) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c X) GetFlowLimiter() fc.FlowLimiter
- func (c X) IsSame(other X) bool
- func (c X) IsValid() bool
- func (c X) M(ctx context.Context, params func(X_m_Params) error) (X_m_Results_Future, capnp.ReleaseFunc)
- func (c X) Release()
- func (c X) Resolve(ctx context.Context) error
- func (c X) SetFlowLimiter(lim fc.FlowLimiter)
- func (c X) String() string
- func (c X) WaitStreaming() error
- type X_List
- type X_Server
- type X_m
- type X_m_Params
- func (X_m_Params) DecodeFromPtr(p capnp.Ptr) X_m_Params
- func (s X_m_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s X_m_Params) I() int64
- func (s X_m_Params) IsValid() bool
- func (s X_m_Params) Message() *capnp.Message
- func (s X_m_Params) Segment() *capnp.Segment
- func (s X_m_Params) SetI(v int64)
- func (s X_m_Params) String() string
- func (s X_m_Params) ToPtr() capnp.Ptr
- type X_m_Params_Future
- type X_m_Params_List
- type X_m_Results
- func (X_m_Results) DecodeFromPtr(p capnp.Ptr) X_m_Results
- func (s X_m_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s X_m_Results) HasT() bool
- func (s X_m_Results) IsValid() bool
- func (s X_m_Results) Message() *capnp.Message
- func (s X_m_Results) Segment() *capnp.Segment
- func (s X_m_Results) SetT(v string) error
- func (s X_m_Results) String() string
- func (s X_m_Results) T() (string, error)
- func (s X_m_Results) TBytes() ([]byte, error)
- func (s X_m_Results) ToPtr() capnp.Ptr
- type X_m_Results_Future
- type X_m_Results_List
- type Y
- func (c Y) AddRef() Y
- func (Y) DecodeFromPtr(p capnp.Ptr) Y
- func (c Y) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Y) GetFlowLimiter() fc.FlowLimiter
- func (c Y) IsSame(other Y) bool
- func (c Y) IsValid() bool
- func (c Y) M(ctx context.Context, params func(Y_m_Params) error) (Y_m_Results_Future, capnp.ReleaseFunc)
- func (c Y) Release()
- func (c Y) Resolve(ctx context.Context) error
- func (c Y) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Y) String() string
- func (c Y) WaitStreaming() error
- type Y_List
- type Y_Server
- type Y_m
- type Y_m_Params
- func (Y_m_Params) DecodeFromPtr(p capnp.Ptr) Y_m_Params
- func (s Y_m_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Y_m_Params) HasHello() bool
- func (s Y_m_Params) Hello() (string, error)
- func (s Y_m_Params) HelloBytes() ([]byte, error)
- func (s Y_m_Params) IsValid() bool
- func (s Y_m_Params) Message() *capnp.Message
- func (s Y_m_Params) Segment() *capnp.Segment
- func (s Y_m_Params) SetHello(v string) error
- func (s Y_m_Params) String() string
- func (s Y_m_Params) ToPtr() capnp.Ptr
- type Y_m_Params_Future
- type Y_m_Params_List
- type Y_m_Results
- func (Y_m_Results) DecodeFromPtr(p capnp.Ptr) Y_m_Results
- func (s Y_m_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Y_m_Results) IsValid() bool
- func (s Y_m_Results) Message() *capnp.Message
- func (s Y_m_Results) Segment() *capnp.Segment
- func (s Y_m_Results) String() string
- func (s Y_m_Results) ToPtr() capnp.Ptr
- type Y_m_Results_Future
- type Y_m_Results_List
- type Z
- func (c Z) AddRef() Z
- func (Z) DecodeFromPtr(p capnp.Ptr) Z
- func (c Z) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Z) GetFlowLimiter() fc.FlowLimiter
- func (c Z) IsSame(other Z) bool
- func (c Z) IsValid() bool
- func (c Z) M(ctx context.Context, params func(Z_m_Params) error) (Z_m_Results_Future, capnp.ReleaseFunc)
- func (c Z) Release()
- func (c Z) Resolve(ctx context.Context) error
- func (c Z) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Z) String() string
- func (c Z) WaitStreaming() error
- type Z_List
- type Z_Server
- type Z_m
- type Z_m_Params
- func (Z_m_Params) DecodeFromPtr(p capnp.Ptr) Z_m_Params
- func (s Z_m_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Z_m_Params) IsValid() bool
- func (s Z_m_Params) Message() *capnp.Message
- func (s Z_m_Params) N() int64
- func (s Z_m_Params) Segment() *capnp.Segment
- func (s Z_m_Params) SetN(v int64)
- func (s Z_m_Params) String() string
- func (s Z_m_Params) ToPtr() capnp.Ptr
- type Z_m_Params_Future
- type Z_m_Params_List
- type Z_m_Results
- func (Z_m_Results) DecodeFromPtr(p capnp.Ptr) Z_m_Results
- func (s Z_m_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Z_m_Results) IsValid() bool
- func (s Z_m_Results) Message() *capnp.Message
- func (s Z_m_Results) R() float64
- func (s Z_m_Results) Segment() *capnp.Segment
- func (s Z_m_Results) SetR(v float64)
- func (s Z_m_Results) String() string
- func (s Z_m_Results) ToPtr() capnp.Ptr
- type Z_m_Results_Future
- type Z_m_Results_List
Constants ¶
const A_TypeID = 0xba9eff6fb3abc84f
A_TypeID is the unique identifier for the type A.
const A_method_Params_TypeID = 0xc506e9c0e16825f7
A_method_Params_TypeID is the unique identifier for the type A_method_Params.
const A_method_Results_TypeID = 0x9e2108f9306a75ef
A_method_Results_TypeID is the unique identifier for the type A_method_Results.
const S_TypeID = 0xd227ef68de0bc647
S_TypeID is the unique identifier for the type S.
const X_TypeID = 0xdcf28e81fa4de615
X_TypeID is the unique identifier for the type X.
const X_m_Params_TypeID = 0xc68563695ada2a40
X_m_Params_TypeID is the unique identifier for the type X_m_Params.
const X_m_Results_TypeID = 0x86aae6bcee1a970d
X_m_Results_TypeID is the unique identifier for the type X_m_Results.
const Y_TypeID = 0xac121e5aa82ca6bd
Y_TypeID is the unique identifier for the type Y.
const Y_m_Params_TypeID = 0xc102bb9ca7ace092
Y_m_Params_TypeID is the unique identifier for the type Y_m_Params.
const Y_m_Results_TypeID = 0xdcf58b9bef546812
Y_m_Results_TypeID is the unique identifier for the type Y_m_Results.
const Z_TypeID = 0xc64526206425c2ab
Z_TypeID is the unique identifier for the type Z.
const Z_m_Params_TypeID = 0xf01d08c96dc98cc9
Z_m_Params_TypeID is the unique identifier for the type Z_m_Params.
const Z_m_Results_TypeID = 0xd444a663531a6b53
Z_m_Results_TypeID is the unique identifier for the type Z_m_Results.
Variables ¶
This section is empty.
Functions ¶
func A_Methods ¶
A_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func A_NewServer ¶
A_NewServer creates a new Server from an implementation of A_Server.
func RegisterSchema ¶
func X_Methods ¶
X_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func X_NewServer ¶
X_NewServer creates a new Server from an implementation of X_Server.
func Y_Methods ¶
Y_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Y_NewServer ¶
Y_NewServer creates a new Server from an implementation of Y_Server.
func Z_Methods ¶
Z_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Z_NewServer ¶
Z_NewServer creates a new Server from an implementation of Z_Server.
Types ¶
type A ¶
func A_ServerToClient ¶
A_ServerToClient creates a new Client from an implementation of A_Server. The caller is responsible for calling Release on the returned Client.
func (A) 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 (A) GetFlowLimiter ¶
func (c A) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (A) IsSame ¶
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 (A) IsValid ¶
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 (A) Method ¶
func (c A) Method(ctx context.Context, params func(A_method_Params) error) (A_method_Results_Future, capnp.ReleaseFunc)
func (A) Release ¶
func (c A) 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 (A) SetFlowLimiter ¶
func (c A) 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 (A) 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 (A) WaitStreaming ¶
type A_method ¶
A_method holds the state for a server call to A.method. See server.Call for documentation.
func (A_method) AllocResults ¶
func (c A_method) AllocResults() (A_method_Results, error)
AllocResults allocates the results struct.
type A_method_Params ¶
func NewA_method_Params ¶
func NewA_method_Params(s *capnp.Segment) (A_method_Params, error)
func NewRootA_method_Params ¶
func NewRootA_method_Params(s *capnp.Segment) (A_method_Params, error)
func ReadRootA_method_Params ¶
func ReadRootA_method_Params(msg *capnp.Message) (A_method_Params, error)
func (A_method_Params) DecodeFromPtr ¶
func (A_method_Params) DecodeFromPtr(p capnp.Ptr) A_method_Params
func (A_method_Params) EncodeAsPtr ¶
func (s A_method_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (A_method_Params) HasParam ¶
func (s A_method_Params) HasParam() bool
func (A_method_Params) IsValid ¶
func (s A_method_Params) IsValid() bool
func (A_method_Params) Message ¶
func (s A_method_Params) Message() *capnp.Message
func (A_method_Params) Param ¶
func (s A_method_Params) Param() (string, error)
func (A_method_Params) ParamBytes ¶
func (s A_method_Params) ParamBytes() ([]byte, error)
func (A_method_Params) Segment ¶
func (s A_method_Params) Segment() *capnp.Segment
func (A_method_Params) SetParam ¶
func (s A_method_Params) SetParam(v string) error
func (A_method_Params) String ¶
func (s A_method_Params) String() string
func (A_method_Params) ToPtr ¶
func (s A_method_Params) ToPtr() capnp.Ptr
type A_method_Params_Future ¶
A_method_Params_Future is a wrapper for a A_method_Params promised by a client call.
func (A_method_Params_Future) Struct ¶
func (f A_method_Params_Future) Struct() (A_method_Params, error)
type A_method_Params_List ¶
type A_method_Params_List = capnp.StructList[A_method_Params]
A_method_Params_List is a list of A_method_Params.
func NewA_method_Params_List ¶
func NewA_method_Params_List(s *capnp.Segment, sz int32) (A_method_Params_List, error)
NewA_method_Params creates a new list of A_method_Params.
type A_method_Results ¶
func NewA_method_Results ¶
func NewA_method_Results(s *capnp.Segment) (A_method_Results, error)
func NewRootA_method_Results ¶
func NewRootA_method_Results(s *capnp.Segment) (A_method_Results, error)
func ReadRootA_method_Results ¶
func ReadRootA_method_Results(msg *capnp.Message) (A_method_Results, error)
func (A_method_Results) DecodeFromPtr ¶
func (A_method_Results) DecodeFromPtr(p capnp.Ptr) A_method_Results
func (A_method_Results) EncodeAsPtr ¶
func (s A_method_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (A_method_Results) HasRes ¶
func (s A_method_Results) HasRes() bool
func (A_method_Results) IsValid ¶
func (s A_method_Results) IsValid() bool
func (A_method_Results) Message ¶
func (s A_method_Results) Message() *capnp.Message
func (A_method_Results) Res ¶
func (s A_method_Results) Res() (string, error)
func (A_method_Results) ResBytes ¶
func (s A_method_Results) ResBytes() ([]byte, error)
func (A_method_Results) Segment ¶
func (s A_method_Results) Segment() *capnp.Segment
func (A_method_Results) SetRes ¶
func (s A_method_Results) SetRes(v string) error
func (A_method_Results) String ¶
func (s A_method_Results) String() string
func (A_method_Results) ToPtr ¶
func (s A_method_Results) ToPtr() capnp.Ptr
type A_method_Results_Future ¶
A_method_Results_Future is a wrapper for a A_method_Results promised by a client call.
func (A_method_Results_Future) Struct ¶
func (f A_method_Results_Future) Struct() (A_method_Results, error)
type A_method_Results_List ¶
type A_method_Results_List = capnp.StructList[A_method_Results]
A_method_Results_List is a list of A_method_Results.
func NewA_method_Results_List ¶
func NewA_method_Results_List(s *capnp.Segment, sz int32) (A_method_Results_List, error)
NewA_method_Results creates a new list of A_method_Results.
type X ¶
func X_ServerToClient ¶
X_ServerToClient creates a new Client from an implementation of X_Server. The caller is responsible for calling Release on the returned Client.
func (X) 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 (X) GetFlowLimiter ¶
func (c X) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (X) IsSame ¶
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 (X) IsValid ¶
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 (X) M ¶
func (c X) M(ctx context.Context, params func(X_m_Params) error) (X_m_Results_Future, capnp.ReleaseFunc)
func (X) Release ¶
func (c X) 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 (X) SetFlowLimiter ¶
func (c X) 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 (X) 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 (X) WaitStreaming ¶
type X_m ¶
X_m holds the state for a server call to X.m. See server.Call for documentation.
func (X_m) AllocResults ¶
func (c X_m) AllocResults() (X_m_Results, error)
AllocResults allocates the results struct.
type X_m_Params ¶
func NewRootX_m_Params ¶
func NewRootX_m_Params(s *capnp.Segment) (X_m_Params, error)
func NewX_m_Params ¶
func NewX_m_Params(s *capnp.Segment) (X_m_Params, error)
func ReadRootX_m_Params ¶
func ReadRootX_m_Params(msg *capnp.Message) (X_m_Params, error)
func (X_m_Params) DecodeFromPtr ¶
func (X_m_Params) DecodeFromPtr(p capnp.Ptr) X_m_Params
func (X_m_Params) EncodeAsPtr ¶
func (s X_m_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (X_m_Params) I ¶
func (s X_m_Params) I() int64
func (X_m_Params) IsValid ¶
func (s X_m_Params) IsValid() bool
func (X_m_Params) Message ¶
func (s X_m_Params) Message() *capnp.Message
func (X_m_Params) Segment ¶
func (s X_m_Params) Segment() *capnp.Segment
func (X_m_Params) SetI ¶
func (s X_m_Params) SetI(v int64)
func (X_m_Params) String ¶
func (s X_m_Params) String() string
func (X_m_Params) ToPtr ¶
func (s X_m_Params) ToPtr() capnp.Ptr
type X_m_Params_Future ¶
X_m_Params_Future is a wrapper for a X_m_Params promised by a client call.
func (X_m_Params_Future) Struct ¶
func (f X_m_Params_Future) Struct() (X_m_Params, error)
type X_m_Params_List ¶
type X_m_Params_List = capnp.StructList[X_m_Params]
X_m_Params_List is a list of X_m_Params.
func NewX_m_Params_List ¶
func NewX_m_Params_List(s *capnp.Segment, sz int32) (X_m_Params_List, error)
NewX_m_Params creates a new list of X_m_Params.
type X_m_Results ¶
func NewRootX_m_Results ¶
func NewRootX_m_Results(s *capnp.Segment) (X_m_Results, error)
func NewX_m_Results ¶
func NewX_m_Results(s *capnp.Segment) (X_m_Results, error)
func ReadRootX_m_Results ¶
func ReadRootX_m_Results(msg *capnp.Message) (X_m_Results, error)
func (X_m_Results) DecodeFromPtr ¶
func (X_m_Results) DecodeFromPtr(p capnp.Ptr) X_m_Results
func (X_m_Results) EncodeAsPtr ¶
func (s X_m_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (X_m_Results) HasT ¶
func (s X_m_Results) HasT() bool
func (X_m_Results) IsValid ¶
func (s X_m_Results) IsValid() bool
func (X_m_Results) Message ¶
func (s X_m_Results) Message() *capnp.Message
func (X_m_Results) Segment ¶
func (s X_m_Results) Segment() *capnp.Segment
func (X_m_Results) SetT ¶
func (s X_m_Results) SetT(v string) error
func (X_m_Results) String ¶
func (s X_m_Results) String() string
func (X_m_Results) T ¶
func (s X_m_Results) T() (string, error)
func (X_m_Results) TBytes ¶
func (s X_m_Results) TBytes() ([]byte, error)
func (X_m_Results) ToPtr ¶
func (s X_m_Results) ToPtr() capnp.Ptr
type X_m_Results_Future ¶
X_m_Results_Future is a wrapper for a X_m_Results promised by a client call.
func (X_m_Results_Future) Struct ¶
func (f X_m_Results_Future) Struct() (X_m_Results, error)
type X_m_Results_List ¶
type X_m_Results_List = capnp.StructList[X_m_Results]
X_m_Results_List is a list of X_m_Results.
func NewX_m_Results_List ¶
func NewX_m_Results_List(s *capnp.Segment, sz int32) (X_m_Results_List, error)
NewX_m_Results creates a new list of X_m_Results.
type Y ¶
func Y_ServerToClient ¶
Y_ServerToClient creates a new Client from an implementation of Y_Server. The caller is responsible for calling Release on the returned Client.
func (Y) 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 (Y) GetFlowLimiter ¶
func (c Y) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Y) IsSame ¶
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 (Y) IsValid ¶
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 (Y) M ¶
func (c Y) M(ctx context.Context, params func(Y_m_Params) error) (Y_m_Results_Future, capnp.ReleaseFunc)
func (Y) Release ¶
func (c Y) 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 (Y) SetFlowLimiter ¶
func (c Y) 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 (Y) 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 (Y) WaitStreaming ¶
type Y_m ¶
Y_m holds the state for a server call to Y.m. See server.Call for documentation.
func (Y_m) AllocResults ¶
func (c Y_m) AllocResults() (Y_m_Results, error)
AllocResults allocates the results struct.
type Y_m_Params ¶
func NewRootY_m_Params ¶
func NewRootY_m_Params(s *capnp.Segment) (Y_m_Params, error)
func NewY_m_Params ¶
func NewY_m_Params(s *capnp.Segment) (Y_m_Params, error)
func ReadRootY_m_Params ¶
func ReadRootY_m_Params(msg *capnp.Message) (Y_m_Params, error)
func (Y_m_Params) DecodeFromPtr ¶
func (Y_m_Params) DecodeFromPtr(p capnp.Ptr) Y_m_Params
func (Y_m_Params) EncodeAsPtr ¶
func (s Y_m_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Y_m_Params) HasHello ¶
func (s Y_m_Params) HasHello() bool
func (Y_m_Params) Hello ¶
func (s Y_m_Params) Hello() (string, error)
func (Y_m_Params) HelloBytes ¶
func (s Y_m_Params) HelloBytes() ([]byte, error)
func (Y_m_Params) IsValid ¶
func (s Y_m_Params) IsValid() bool
func (Y_m_Params) Message ¶
func (s Y_m_Params) Message() *capnp.Message
func (Y_m_Params) Segment ¶
func (s Y_m_Params) Segment() *capnp.Segment
func (Y_m_Params) SetHello ¶
func (s Y_m_Params) SetHello(v string) error
func (Y_m_Params) String ¶
func (s Y_m_Params) String() string
func (Y_m_Params) ToPtr ¶
func (s Y_m_Params) ToPtr() capnp.Ptr
type Y_m_Params_Future ¶
Y_m_Params_Future is a wrapper for a Y_m_Params promised by a client call.
func (Y_m_Params_Future) Struct ¶
func (f Y_m_Params_Future) Struct() (Y_m_Params, error)
type Y_m_Params_List ¶
type Y_m_Params_List = capnp.StructList[Y_m_Params]
Y_m_Params_List is a list of Y_m_Params.
func NewY_m_Params_List ¶
func NewY_m_Params_List(s *capnp.Segment, sz int32) (Y_m_Params_List, error)
NewY_m_Params creates a new list of Y_m_Params.
type Y_m_Results ¶
func NewRootY_m_Results ¶
func NewRootY_m_Results(s *capnp.Segment) (Y_m_Results, error)
func NewY_m_Results ¶
func NewY_m_Results(s *capnp.Segment) (Y_m_Results, error)
func ReadRootY_m_Results ¶
func ReadRootY_m_Results(msg *capnp.Message) (Y_m_Results, error)
func (Y_m_Results) DecodeFromPtr ¶
func (Y_m_Results) DecodeFromPtr(p capnp.Ptr) Y_m_Results
func (Y_m_Results) EncodeAsPtr ¶
func (s Y_m_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Y_m_Results) IsValid ¶
func (s Y_m_Results) IsValid() bool
func (Y_m_Results) Message ¶
func (s Y_m_Results) Message() *capnp.Message
func (Y_m_Results) Segment ¶
func (s Y_m_Results) Segment() *capnp.Segment
func (Y_m_Results) String ¶
func (s Y_m_Results) String() string
func (Y_m_Results) ToPtr ¶
func (s Y_m_Results) ToPtr() capnp.Ptr
type Y_m_Results_Future ¶
Y_m_Results_Future is a wrapper for a Y_m_Results promised by a client call.
func (Y_m_Results_Future) Struct ¶
func (f Y_m_Results_Future) Struct() (Y_m_Results, error)
type Y_m_Results_List ¶
type Y_m_Results_List = capnp.StructList[Y_m_Results]
Y_m_Results_List is a list of Y_m_Results.
func NewY_m_Results_List ¶
func NewY_m_Results_List(s *capnp.Segment, sz int32) (Y_m_Results_List, error)
NewY_m_Results creates a new list of Y_m_Results.
type Z ¶
func Z_ServerToClient ¶
Z_ServerToClient creates a new Client from an implementation of Z_Server. The caller is responsible for calling Release on the returned Client.
func (Z) 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 (Z) GetFlowLimiter ¶
func (c Z) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Z) IsSame ¶
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 (Z) IsValid ¶
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 (Z) M ¶
func (c Z) M(ctx context.Context, params func(Z_m_Params) error) (Z_m_Results_Future, capnp.ReleaseFunc)
func (Z) Release ¶
func (c Z) 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 (Z) SetFlowLimiter ¶
func (c Z) 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 (Z) 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 (Z) WaitStreaming ¶
type Z_m ¶
Z_m holds the state for a server call to Z.m. See server.Call for documentation.
func (Z_m) AllocResults ¶
func (c Z_m) AllocResults() (Z_m_Results, error)
AllocResults allocates the results struct.
type Z_m_Params ¶
func NewRootZ_m_Params ¶
func NewRootZ_m_Params(s *capnp.Segment) (Z_m_Params, error)
func NewZ_m_Params ¶
func NewZ_m_Params(s *capnp.Segment) (Z_m_Params, error)
func ReadRootZ_m_Params ¶
func ReadRootZ_m_Params(msg *capnp.Message) (Z_m_Params, error)
func (Z_m_Params) DecodeFromPtr ¶
func (Z_m_Params) DecodeFromPtr(p capnp.Ptr) Z_m_Params
func (Z_m_Params) EncodeAsPtr ¶
func (s Z_m_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Z_m_Params) IsValid ¶
func (s Z_m_Params) IsValid() bool
func (Z_m_Params) Message ¶
func (s Z_m_Params) Message() *capnp.Message
func (Z_m_Params) N ¶
func (s Z_m_Params) N() int64
func (Z_m_Params) Segment ¶
func (s Z_m_Params) Segment() *capnp.Segment
func (Z_m_Params) SetN ¶
func (s Z_m_Params) SetN(v int64)
func (Z_m_Params) String ¶
func (s Z_m_Params) String() string
func (Z_m_Params) ToPtr ¶
func (s Z_m_Params) ToPtr() capnp.Ptr
type Z_m_Params_Future ¶
Z_m_Params_Future is a wrapper for a Z_m_Params promised by a client call.
func (Z_m_Params_Future) Struct ¶
func (f Z_m_Params_Future) Struct() (Z_m_Params, error)
type Z_m_Params_List ¶
type Z_m_Params_List = capnp.StructList[Z_m_Params]
Z_m_Params_List is a list of Z_m_Params.
func NewZ_m_Params_List ¶
func NewZ_m_Params_List(s *capnp.Segment, sz int32) (Z_m_Params_List, error)
NewZ_m_Params creates a new list of Z_m_Params.
type Z_m_Results ¶
func NewRootZ_m_Results ¶
func NewRootZ_m_Results(s *capnp.Segment) (Z_m_Results, error)
func NewZ_m_Results ¶
func NewZ_m_Results(s *capnp.Segment) (Z_m_Results, error)
func ReadRootZ_m_Results ¶
func ReadRootZ_m_Results(msg *capnp.Message) (Z_m_Results, error)
func (Z_m_Results) DecodeFromPtr ¶
func (Z_m_Results) DecodeFromPtr(p capnp.Ptr) Z_m_Results
func (Z_m_Results) EncodeAsPtr ¶
func (s Z_m_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Z_m_Results) IsValid ¶
func (s Z_m_Results) IsValid() bool
func (Z_m_Results) Message ¶
func (s Z_m_Results) Message() *capnp.Message
func (Z_m_Results) R ¶
func (s Z_m_Results) R() float64
func (Z_m_Results) Segment ¶
func (s Z_m_Results) Segment() *capnp.Segment
func (Z_m_Results) SetR ¶
func (s Z_m_Results) SetR(v float64)
func (Z_m_Results) String ¶
func (s Z_m_Results) String() string
func (Z_m_Results) ToPtr ¶
func (s Z_m_Results) ToPtr() capnp.Ptr
type Z_m_Results_Future ¶
Z_m_Results_Future is a wrapper for a Z_m_Results promised by a client call.
func (Z_m_Results_Future) Struct ¶
func (f Z_m_Results_Future) Struct() (Z_m_Results, error)
type Z_m_Results_List ¶
type Z_m_Results_List = capnp.StructList[Z_m_Results]
Z_m_Results_List is a list of Z_m_Results.
func NewZ_m_Results_List ¶
func NewZ_m_Results_List(s *capnp.Segment, sz int32) (Z_m_Results_List, error)
NewZ_m_Results creates a new list of Z_m_Results.