Documentation ¶
Index ¶
- Constants
- func Input_Methods(methods []server.Method, s Input_Server) []server.Method
- func Input_NewServer(s Input_Server, policy *server.Policy) *server.Server
- func Output_Methods(methods []server.Method, s Output_Server) []server.Method
- func Output_NewServer(s Output_Server, policy *server.Policy) *server.Server
- type Input
- type Input_Server
- type Input_input
- type Input_input_Params
- type Input_input_Params_Future
- type Input_input_Params_List
- type Input_input_Results
- type Input_input_Results_Future
- type Input_input_Results_List
- type Output
- type Output_Server
- type Output_output
- type Output_output_Params
- type Output_output_Params_Future
- type Output_output_Params_List
- type Output_output_Results
- type Output_output_Results_Future
- type Output_output_Results_List
Constants ¶
const Input_TypeID = 0x9f6bf783c59ae53f
Input_TypeID is the unique identifier for the type Input.
const Input_input_Params_TypeID = 0xdf66370e686c9b09
Input_input_Params_TypeID is the unique identifier for the type Input_input_Params.
const Input_input_Results_TypeID = 0x9d2556ab64354282
Input_input_Results_TypeID is the unique identifier for the type Input_input_Results.
const Output_TypeID = 0xf92ba4cc25099ed7
Output_TypeID is the unique identifier for the type Output.
const Output_output_Params_TypeID = 0xc041f7b2c1f05e54
Output_output_Params_TypeID is the unique identifier for the type Output_output_Params.
const Output_output_Results_TypeID = 0xb1ffe14d66f53639
Output_output_Results_TypeID is the unique identifier for the type Output_output_Results.
Variables ¶
This section is empty.
Functions ¶
func Input_Methods ¶
func Input_Methods(methods []server.Method, s Input_Server) []server.Method
Input_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Input_NewServer ¶
func Input_NewServer(s Input_Server, policy *server.Policy) *server.Server
Input_NewServer creates a new Server from an implementation of Input_Server.
func Output_Methods ¶
func Output_Methods(methods []server.Method, s Output_Server) []server.Method
Output_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Output_NewServer ¶
func Output_NewServer(s Output_Server, policy *server.Policy) *server.Server
Output_NewServer creates a new Server from an implementation of Output_Server.
Types ¶
type Input ¶
func Input_ServerToClient ¶
func Input_ServerToClient(s Input_Server, policy *server.Policy) Input
Input_ServerToClient creates a new Client from an implementation of Input_Server. The caller is responsible for calling Release on the returned Client.
func (Input) Input ¶
func (c Input) Input(ctx context.Context, params func(Input_input_Params) error) (Input_input_Results_Future, capnp.ReleaseFunc)
type Input_Server ¶
type Input_Server interface {
Input(context.Context, Input_input) error
}
A Input_Server is a Input with a local implementation.
type Input_input ¶
Input_input holds the state for a server call to Input.input. See server.Call for documentation.
func (Input_input) AllocResults ¶
func (c Input_input) AllocResults() (Input_input_Results, error)
AllocResults allocates the results struct.
func (Input_input) Args ¶
func (c Input_input) Args() Input_input_Params
Args returns the call's arguments.
type Input_input_Params ¶
func NewInput_input_Params ¶
func NewInput_input_Params(s *capnp.Segment) (Input_input_Params, error)
func NewRootInput_input_Params ¶
func NewRootInput_input_Params(s *capnp.Segment) (Input_input_Params, error)
func ReadRootInput_input_Params ¶
func ReadRootInput_input_Params(msg *capnp.Message) (Input_input_Params, error)
func (Input_input_Params) Data ¶
func (s Input_input_Params) Data() (string, error)
func (Input_input_Params) DataBytes ¶
func (s Input_input_Params) DataBytes() ([]byte, error)
func (Input_input_Params) HasData ¶
func (s Input_input_Params) HasData() bool
func (Input_input_Params) SetData ¶
func (s Input_input_Params) SetData(v string) error
func (Input_input_Params) String ¶
func (s Input_input_Params) String() string
type Input_input_Params_Future ¶
Input_input_Params_Future is a wrapper for a Input_input_Params promised by a client call.
func (Input_input_Params_Future) Struct ¶
func (p Input_input_Params_Future) Struct() (Input_input_Params, error)
type Input_input_Params_List ¶
Input_input_Params_List is a list of Input_input_Params.
func NewInput_input_Params_List ¶
func NewInput_input_Params_List(s *capnp.Segment, sz int32) (Input_input_Params_List, error)
NewInput_input_Params creates a new list of Input_input_Params.
func (Input_input_Params_List) At ¶
func (s Input_input_Params_List) At(i int) Input_input_Params
func (Input_input_Params_List) Set ¶
func (s Input_input_Params_List) Set(i int, v Input_input_Params) error
func (Input_input_Params_List) String ¶
func (s Input_input_Params_List) String() string
type Input_input_Results ¶
func NewInput_input_Results ¶
func NewInput_input_Results(s *capnp.Segment) (Input_input_Results, error)
func NewRootInput_input_Results ¶
func NewRootInput_input_Results(s *capnp.Segment) (Input_input_Results, error)
func ReadRootInput_input_Results ¶
func ReadRootInput_input_Results(msg *capnp.Message) (Input_input_Results, error)
func (Input_input_Results) String ¶
func (s Input_input_Results) String() string
type Input_input_Results_Future ¶
Input_input_Results_Future is a wrapper for a Input_input_Results promised by a client call.
func (Input_input_Results_Future) Struct ¶
func (p Input_input_Results_Future) Struct() (Input_input_Results, error)
type Input_input_Results_List ¶
Input_input_Results_List is a list of Input_input_Results.
func NewInput_input_Results_List ¶
func NewInput_input_Results_List(s *capnp.Segment, sz int32) (Input_input_Results_List, error)
NewInput_input_Results creates a new list of Input_input_Results.
func (Input_input_Results_List) At ¶
func (s Input_input_Results_List) At(i int) Input_input_Results
func (Input_input_Results_List) Set ¶
func (s Input_input_Results_List) Set(i int, v Input_input_Results) error
func (Input_input_Results_List) String ¶
func (s Input_input_Results_List) String() string
type Output ¶
func Output_ServerToClient ¶
func Output_ServerToClient(s Output_Server, policy *server.Policy) Output
Output_ServerToClient creates a new Client from an implementation of Output_Server. The caller is responsible for calling Release on the returned Client.
func (Output) Output ¶
func (c Output) Output(ctx context.Context, params func(Output_output_Params) error) (Output_output_Results_Future, capnp.ReleaseFunc)
type Output_Server ¶
type Output_Server interface {
Output(context.Context, Output_output) error
}
A Output_Server is a Output with a local implementation.
type Output_output ¶
Output_output holds the state for a server call to Output.output. See server.Call for documentation.
func (Output_output) AllocResults ¶
func (c Output_output) AllocResults() (Output_output_Results, error)
AllocResults allocates the results struct.
func (Output_output) Args ¶
func (c Output_output) Args() Output_output_Params
Args returns the call's arguments.
type Output_output_Params ¶
func NewOutput_output_Params ¶
func NewOutput_output_Params(s *capnp.Segment) (Output_output_Params, error)
func NewRootOutput_output_Params ¶
func NewRootOutput_output_Params(s *capnp.Segment) (Output_output_Params, error)
func ReadRootOutput_output_Params ¶
func ReadRootOutput_output_Params(msg *capnp.Message) (Output_output_Params, error)
func (Output_output_Params) Data ¶
func (s Output_output_Params) Data() (string, error)
func (Output_output_Params) DataBytes ¶
func (s Output_output_Params) DataBytes() ([]byte, error)
func (Output_output_Params) HasData ¶
func (s Output_output_Params) HasData() bool
func (Output_output_Params) SetData ¶
func (s Output_output_Params) SetData(v string) error
func (Output_output_Params) String ¶
func (s Output_output_Params) String() string
type Output_output_Params_Future ¶
Output_output_Params_Future is a wrapper for a Output_output_Params promised by a client call.
func (Output_output_Params_Future) Struct ¶
func (p Output_output_Params_Future) Struct() (Output_output_Params, error)
type Output_output_Params_List ¶
Output_output_Params_List is a list of Output_output_Params.
func NewOutput_output_Params_List ¶
func NewOutput_output_Params_List(s *capnp.Segment, sz int32) (Output_output_Params_List, error)
NewOutput_output_Params creates a new list of Output_output_Params.
func (Output_output_Params_List) At ¶
func (s Output_output_Params_List) At(i int) Output_output_Params
func (Output_output_Params_List) Set ¶
func (s Output_output_Params_List) Set(i int, v Output_output_Params) error
func (Output_output_Params_List) String ¶
func (s Output_output_Params_List) String() string
type Output_output_Results ¶
func NewOutput_output_Results ¶
func NewOutput_output_Results(s *capnp.Segment) (Output_output_Results, error)
func NewRootOutput_output_Results ¶
func NewRootOutput_output_Results(s *capnp.Segment) (Output_output_Results, error)
func ReadRootOutput_output_Results ¶
func ReadRootOutput_output_Results(msg *capnp.Message) (Output_output_Results, error)
func (Output_output_Results) String ¶
func (s Output_output_Results) String() string
type Output_output_Results_Future ¶
Output_output_Results_Future is a wrapper for a Output_output_Results promised by a client call.
func (Output_output_Results_Future) Struct ¶
func (p Output_output_Results_Future) Struct() (Output_output_Results, error)
type Output_output_Results_List ¶
Output_output_Results_List is a list of Output_output_Results.
func NewOutput_output_Results_List ¶
func NewOutput_output_Results_List(s *capnp.Segment, sz int32) (Output_output_Results_List, error)
NewOutput_output_Results creates a new list of Output_output_Results.
func (Output_output_Results_List) At ¶
func (s Output_output_Results_List) At(i int) Output_output_Results
func (Output_output_Results_List) Set ¶
func (s Output_output_Results_List) Set(i int, v Output_output_Results) error
func (Output_output_Results_List) String ¶
func (s Output_output_Results_List) String() string