Documentation ¶
Index ¶
- Constants
- func A_Methods(methods []server.Method, s A_Server) []server.Method
- func A_NewServer(s A_Server, policy *server.Policy) *server.Server
- type A
- type A_Server
- type A_method
- type A_method_Params
- type A_method_Params_Future
- type A_method_Params_List
- type A_method_Results
- type A_method_Results_Future
- type A_method_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.
Variables ¶
This section is empty.
Functions ¶
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) Method ¶
func (c A) Method(ctx context.Context, params func(A_method_Params) error) (A_method_Results_Future, capnp.ReleaseFunc)
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) HasParam ¶
func (s A_method_Params) HasParam() bool
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) SetParam ¶
func (s A_method_Params) SetParam(v string) error
func (A_method_Params) String ¶
func (s A_method_Params) String() string
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 (p A_method_Params_Future) Struct() (A_method_Params, error)
type A_method_Params_List ¶
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.
func (A_method_Params_List) At ¶
func (s A_method_Params_List) At(i int) A_method_Params
func (A_method_Params_List) Set ¶
func (s A_method_Params_List) Set(i int, v A_method_Params) error
func (A_method_Params_List) String ¶
func (s A_method_Params_List) String() string
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) HasRes ¶
func (s A_method_Results) HasRes() bool
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) SetRes ¶
func (s A_method_Results) SetRes(v string) error
func (A_method_Results) String ¶
func (s A_method_Results) String() string
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 (p A_method_Results_Future) Struct() (A_method_Results, error)
type A_method_Results_List ¶
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.
func (A_method_Results_List) At ¶
func (s A_method_Results_List) At(i int) A_method_Results
func (A_method_Results_List) Set ¶
func (s A_method_Results_List) Set(i int, v A_method_Results) error
func (A_method_Results_List) String ¶
func (s A_method_Results_List) String() string