testcapnp

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adder_Methods

func Adder_Methods(methods []server.Method, s Adder_Server) []server.Method

func CallOrder_Methods

func CallOrder_Methods(methods []server.Method, s CallOrder_Server) []server.Method

func Echoer_Methods

func Echoer_Methods(methods []server.Method, s Echoer_Server) []server.Method

func HandleFactory_Methods

func HandleFactory_Methods(methods []server.Method, s HandleFactory_Server) []server.Method

func Handle_Methods

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

func Hanger_Methods

func Hanger_Methods(methods []server.Method, s Hanger_Server) []server.Method

Types

type Adder

type Adder struct{ Client capnp.Client }

func Adder_ServerToClient

func Adder_ServerToClient(s Adder_Server) Adder

func (Adder) Add

type Adder_Server

type Adder_Server interface {
	Add(Adder_add) error
}

type Adder_add

type Adder_add struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  Adder_add_Params
	Results Adder_add_Results
}

Adder_add holds the arguments for a server call to Adder.add.

type Adder_add_Params

type Adder_add_Params struct{ capnp.Struct }

func NewAdder_add_Params

func NewAdder_add_Params(s *capnp.Segment) (Adder_add_Params, error)

func NewRootAdder_add_Params

func NewRootAdder_add_Params(s *capnp.Segment) (Adder_add_Params, error)

func ReadRootAdder_add_Params

func ReadRootAdder_add_Params(msg *capnp.Message) (Adder_add_Params, error)

func (Adder_add_Params) A

func (s Adder_add_Params) A() int32

func (Adder_add_Params) B

func (s Adder_add_Params) B() int32

func (Adder_add_Params) SetA

func (s Adder_add_Params) SetA(v int32)

func (Adder_add_Params) SetB

func (s Adder_add_Params) SetB(v int32)

type Adder_add_Params_List

type Adder_add_Params_List struct{ capnp.List }

Adder_add_Params_List is a list of Adder_add_Params.

func NewAdder_add_Params_List

func NewAdder_add_Params_List(s *capnp.Segment, sz int32) (Adder_add_Params_List, error)

NewAdder_add_Params creates a new list of Adder_add_Params.

func (Adder_add_Params_List) At

func (Adder_add_Params_List) Set

type Adder_add_Params_Promise

type Adder_add_Params_Promise struct{ *capnp.Pipeline }

Adder_add_Params_Promise is a wrapper for a Adder_add_Params promised by a client call.

func (Adder_add_Params_Promise) Struct

type Adder_add_Results

type Adder_add_Results struct{ capnp.Struct }

func NewAdder_add_Results

func NewAdder_add_Results(s *capnp.Segment) (Adder_add_Results, error)

func NewRootAdder_add_Results

func NewRootAdder_add_Results(s *capnp.Segment) (Adder_add_Results, error)

func ReadRootAdder_add_Results

func ReadRootAdder_add_Results(msg *capnp.Message) (Adder_add_Results, error)

func (Adder_add_Results) Result

func (s Adder_add_Results) Result() int32

func (Adder_add_Results) SetResult

func (s Adder_add_Results) SetResult(v int32)

type Adder_add_Results_List

type Adder_add_Results_List struct{ capnp.List }

Adder_add_Results_List is a list of Adder_add_Results.

func NewAdder_add_Results_List

func NewAdder_add_Results_List(s *capnp.Segment, sz int32) (Adder_add_Results_List, error)

NewAdder_add_Results creates a new list of Adder_add_Results.

func (Adder_add_Results_List) At

func (Adder_add_Results_List) Set

type Adder_add_Results_Promise

type Adder_add_Results_Promise struct{ *capnp.Pipeline }

Adder_add_Results_Promise is a wrapper for a Adder_add_Results promised by a client call.

func (Adder_add_Results_Promise) Struct

type CallOrder

type CallOrder struct{ Client capnp.Client }

func CallOrder_ServerToClient

func CallOrder_ServerToClient(s CallOrder_Server) CallOrder

type CallOrder_Server

type CallOrder_Server interface {
	GetCallSequence(CallOrder_getCallSequence) error
}

type CallOrder_getCallSequence

type CallOrder_getCallSequence struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  CallOrder_getCallSequence_Params
	Results CallOrder_getCallSequence_Results
}

CallOrder_getCallSequence holds the arguments for a server call to CallOrder.getCallSequence.

type CallOrder_getCallSequence_Params

type CallOrder_getCallSequence_Params struct{ capnp.Struct }

func NewCallOrder_getCallSequence_Params

func NewCallOrder_getCallSequence_Params(s *capnp.Segment) (CallOrder_getCallSequence_Params, error)

func NewRootCallOrder_getCallSequence_Params

func NewRootCallOrder_getCallSequence_Params(s *capnp.Segment) (CallOrder_getCallSequence_Params, error)

func ReadRootCallOrder_getCallSequence_Params

func ReadRootCallOrder_getCallSequence_Params(msg *capnp.Message) (CallOrder_getCallSequence_Params, error)

func (CallOrder_getCallSequence_Params) Expected

func (CallOrder_getCallSequence_Params) SetExpected

func (s CallOrder_getCallSequence_Params) SetExpected(v uint32)

type CallOrder_getCallSequence_Params_List

type CallOrder_getCallSequence_Params_List struct{ capnp.List }

CallOrder_getCallSequence_Params_List is a list of CallOrder_getCallSequence_Params.

func NewCallOrder_getCallSequence_Params_List

func NewCallOrder_getCallSequence_Params_List(s *capnp.Segment, sz int32) (CallOrder_getCallSequence_Params_List, error)

NewCallOrder_getCallSequence_Params creates a new list of CallOrder_getCallSequence_Params.

func (CallOrder_getCallSequence_Params_List) At

func (CallOrder_getCallSequence_Params_List) Set

type CallOrder_getCallSequence_Params_Promise

type CallOrder_getCallSequence_Params_Promise struct{ *capnp.Pipeline }

CallOrder_getCallSequence_Params_Promise is a wrapper for a CallOrder_getCallSequence_Params promised by a client call.

func (CallOrder_getCallSequence_Params_Promise) Struct

type CallOrder_getCallSequence_Results

type CallOrder_getCallSequence_Results struct{ capnp.Struct }

func NewCallOrder_getCallSequence_Results

func NewCallOrder_getCallSequence_Results(s *capnp.Segment) (CallOrder_getCallSequence_Results, error)

func NewRootCallOrder_getCallSequence_Results

func NewRootCallOrder_getCallSequence_Results(s *capnp.Segment) (CallOrder_getCallSequence_Results, error)

func ReadRootCallOrder_getCallSequence_Results

func ReadRootCallOrder_getCallSequence_Results(msg *capnp.Message) (CallOrder_getCallSequence_Results, error)

func (CallOrder_getCallSequence_Results) N

func (CallOrder_getCallSequence_Results) SetN

type CallOrder_getCallSequence_Results_List

type CallOrder_getCallSequence_Results_List struct{ capnp.List }

CallOrder_getCallSequence_Results_List is a list of CallOrder_getCallSequence_Results.

func NewCallOrder_getCallSequence_Results_List

func NewCallOrder_getCallSequence_Results_List(s *capnp.Segment, sz int32) (CallOrder_getCallSequence_Results_List, error)

NewCallOrder_getCallSequence_Results creates a new list of CallOrder_getCallSequence_Results.

func (CallOrder_getCallSequence_Results_List) At

func (CallOrder_getCallSequence_Results_List) Set

type CallOrder_getCallSequence_Results_Promise

type CallOrder_getCallSequence_Results_Promise struct{ *capnp.Pipeline }

CallOrder_getCallSequence_Results_Promise is a wrapper for a CallOrder_getCallSequence_Results promised by a client call.

func (CallOrder_getCallSequence_Results_Promise) Struct

type Echoer

type Echoer struct{ Client capnp.Client }

func Echoer_ServerToClient

func Echoer_ServerToClient(s Echoer_Server) Echoer

func (Echoer) Echo

type Echoer_Server

type Echoer_Server interface {
	Echo(Echoer_echo) error

	GetCallSequence(CallOrder_getCallSequence) error
}

type Echoer_echo

type Echoer_echo struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  Echoer_echo_Params
	Results Echoer_echo_Results
}

Echoer_echo holds the arguments for a server call to Echoer.echo.

type Echoer_echo_Params

type Echoer_echo_Params struct{ capnp.Struct }

func NewEchoer_echo_Params

func NewEchoer_echo_Params(s *capnp.Segment) (Echoer_echo_Params, error)

func NewRootEchoer_echo_Params

func NewRootEchoer_echo_Params(s *capnp.Segment) (Echoer_echo_Params, error)

func ReadRootEchoer_echo_Params

func ReadRootEchoer_echo_Params(msg *capnp.Message) (Echoer_echo_Params, error)

func (Echoer_echo_Params) Cap

func (s Echoer_echo_Params) Cap() CallOrder

func (Echoer_echo_Params) HasCap

func (s Echoer_echo_Params) HasCap() bool

func (Echoer_echo_Params) SetCap

func (s Echoer_echo_Params) SetCap(v CallOrder) error

type Echoer_echo_Params_List

type Echoer_echo_Params_List struct{ capnp.List }

Echoer_echo_Params_List is a list of Echoer_echo_Params.

func NewEchoer_echo_Params_List

func NewEchoer_echo_Params_List(s *capnp.Segment, sz int32) (Echoer_echo_Params_List, error)

NewEchoer_echo_Params creates a new list of Echoer_echo_Params.

func (Echoer_echo_Params_List) At

func (Echoer_echo_Params_List) Set

type Echoer_echo_Params_Promise

type Echoer_echo_Params_Promise struct{ *capnp.Pipeline }

Echoer_echo_Params_Promise is a wrapper for a Echoer_echo_Params promised by a client call.

func (Echoer_echo_Params_Promise) Cap

func (Echoer_echo_Params_Promise) Struct

type Echoer_echo_Results

type Echoer_echo_Results struct{ capnp.Struct }

func NewEchoer_echo_Results

func NewEchoer_echo_Results(s *capnp.Segment) (Echoer_echo_Results, error)

func NewRootEchoer_echo_Results

func NewRootEchoer_echo_Results(s *capnp.Segment) (Echoer_echo_Results, error)

func ReadRootEchoer_echo_Results

func ReadRootEchoer_echo_Results(msg *capnp.Message) (Echoer_echo_Results, error)

func (Echoer_echo_Results) Cap

func (Echoer_echo_Results) HasCap

func (s Echoer_echo_Results) HasCap() bool

func (Echoer_echo_Results) SetCap

func (s Echoer_echo_Results) SetCap(v CallOrder) error

type Echoer_echo_Results_List

type Echoer_echo_Results_List struct{ capnp.List }

Echoer_echo_Results_List is a list of Echoer_echo_Results.

func NewEchoer_echo_Results_List

func NewEchoer_echo_Results_List(s *capnp.Segment, sz int32) (Echoer_echo_Results_List, error)

NewEchoer_echo_Results creates a new list of Echoer_echo_Results.

func (Echoer_echo_Results_List) At

func (Echoer_echo_Results_List) Set

type Echoer_echo_Results_Promise

type Echoer_echo_Results_Promise struct{ *capnp.Pipeline }

Echoer_echo_Results_Promise is a wrapper for a Echoer_echo_Results promised by a client call.

func (Echoer_echo_Results_Promise) Cap

func (Echoer_echo_Results_Promise) Struct

type Handle

type Handle struct{ Client capnp.Client }

func Handle_ServerToClient

func Handle_ServerToClient(s Handle_Server) Handle

type HandleFactory

type HandleFactory struct{ Client capnp.Client }

func HandleFactory_ServerToClient

func HandleFactory_ServerToClient(s HandleFactory_Server) HandleFactory

type HandleFactory_Server

type HandleFactory_Server interface {
	NewHandle(HandleFactory_newHandle) error
}

type HandleFactory_newHandle

type HandleFactory_newHandle struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  HandleFactory_newHandle_Params
	Results HandleFactory_newHandle_Results
}

HandleFactory_newHandle holds the arguments for a server call to HandleFactory.newHandle.

type HandleFactory_newHandle_Params

type HandleFactory_newHandle_Params struct{ capnp.Struct }

func NewHandleFactory_newHandle_Params

func NewHandleFactory_newHandle_Params(s *capnp.Segment) (HandleFactory_newHandle_Params, error)

func NewRootHandleFactory_newHandle_Params

func NewRootHandleFactory_newHandle_Params(s *capnp.Segment) (HandleFactory_newHandle_Params, error)

func ReadRootHandleFactory_newHandle_Params

func ReadRootHandleFactory_newHandle_Params(msg *capnp.Message) (HandleFactory_newHandle_Params, error)

type HandleFactory_newHandle_Params_List

type HandleFactory_newHandle_Params_List struct{ capnp.List }

HandleFactory_newHandle_Params_List is a list of HandleFactory_newHandle_Params.

func NewHandleFactory_newHandle_Params_List

func NewHandleFactory_newHandle_Params_List(s *capnp.Segment, sz int32) (HandleFactory_newHandle_Params_List, error)

NewHandleFactory_newHandle_Params creates a new list of HandleFactory_newHandle_Params.

func (HandleFactory_newHandle_Params_List) At

func (HandleFactory_newHandle_Params_List) Set

type HandleFactory_newHandle_Params_Promise

type HandleFactory_newHandle_Params_Promise struct{ *capnp.Pipeline }

HandleFactory_newHandle_Params_Promise is a wrapper for a HandleFactory_newHandle_Params promised by a client call.

func (HandleFactory_newHandle_Params_Promise) Struct

type HandleFactory_newHandle_Results

type HandleFactory_newHandle_Results struct{ capnp.Struct }

func NewHandleFactory_newHandle_Results

func NewHandleFactory_newHandle_Results(s *capnp.Segment) (HandleFactory_newHandle_Results, error)

func NewRootHandleFactory_newHandle_Results

func NewRootHandleFactory_newHandle_Results(s *capnp.Segment) (HandleFactory_newHandle_Results, error)

func ReadRootHandleFactory_newHandle_Results

func ReadRootHandleFactory_newHandle_Results(msg *capnp.Message) (HandleFactory_newHandle_Results, error)

func (HandleFactory_newHandle_Results) Handle

func (HandleFactory_newHandle_Results) HasHandle

func (s HandleFactory_newHandle_Results) HasHandle() bool

func (HandleFactory_newHandle_Results) SetHandle

type HandleFactory_newHandle_Results_List

type HandleFactory_newHandle_Results_List struct{ capnp.List }

HandleFactory_newHandle_Results_List is a list of HandleFactory_newHandle_Results.

func NewHandleFactory_newHandle_Results_List

func NewHandleFactory_newHandle_Results_List(s *capnp.Segment, sz int32) (HandleFactory_newHandle_Results_List, error)

NewHandleFactory_newHandle_Results creates a new list of HandleFactory_newHandle_Results.

func (HandleFactory_newHandle_Results_List) At

func (HandleFactory_newHandle_Results_List) Set

type HandleFactory_newHandle_Results_Promise

type HandleFactory_newHandle_Results_Promise struct{ *capnp.Pipeline }

HandleFactory_newHandle_Results_Promise is a wrapper for a HandleFactory_newHandle_Results promised by a client call.

func (HandleFactory_newHandle_Results_Promise) Handle

func (HandleFactory_newHandle_Results_Promise) Struct

type Handle_Server

type Handle_Server interface {
}

type Hanger

type Hanger struct{ Client capnp.Client }

func Hanger_ServerToClient

func Hanger_ServerToClient(s Hanger_Server) Hanger

func (Hanger) Hang

type Hanger_Server

type Hanger_Server interface {
	Hang(Hanger_hang) error
}

type Hanger_hang

type Hanger_hang struct {
	Ctx     context.Context
	Options capnp.CallOptions
	Params  Hanger_hang_Params
	Results Hanger_hang_Results
}

Hanger_hang holds the arguments for a server call to Hanger.hang.

type Hanger_hang_Params

type Hanger_hang_Params struct{ capnp.Struct }

func NewHanger_hang_Params

func NewHanger_hang_Params(s *capnp.Segment) (Hanger_hang_Params, error)

func NewRootHanger_hang_Params

func NewRootHanger_hang_Params(s *capnp.Segment) (Hanger_hang_Params, error)

func ReadRootHanger_hang_Params

func ReadRootHanger_hang_Params(msg *capnp.Message) (Hanger_hang_Params, error)

type Hanger_hang_Params_List

type Hanger_hang_Params_List struct{ capnp.List }

Hanger_hang_Params_List is a list of Hanger_hang_Params.

func NewHanger_hang_Params_List

func NewHanger_hang_Params_List(s *capnp.Segment, sz int32) (Hanger_hang_Params_List, error)

NewHanger_hang_Params creates a new list of Hanger_hang_Params.

func (Hanger_hang_Params_List) At

func (Hanger_hang_Params_List) Set

type Hanger_hang_Params_Promise

type Hanger_hang_Params_Promise struct{ *capnp.Pipeline }

Hanger_hang_Params_Promise is a wrapper for a Hanger_hang_Params promised by a client call.

func (Hanger_hang_Params_Promise) Struct

type Hanger_hang_Results

type Hanger_hang_Results struct{ capnp.Struct }

func NewHanger_hang_Results

func NewHanger_hang_Results(s *capnp.Segment) (Hanger_hang_Results, error)

func NewRootHanger_hang_Results

func NewRootHanger_hang_Results(s *capnp.Segment) (Hanger_hang_Results, error)

func ReadRootHanger_hang_Results

func ReadRootHanger_hang_Results(msg *capnp.Message) (Hanger_hang_Results, error)

type Hanger_hang_Results_List

type Hanger_hang_Results_List struct{ capnp.List }

Hanger_hang_Results_List is a list of Hanger_hang_Results.

func NewHanger_hang_Results_List

func NewHanger_hang_Results_List(s *capnp.Segment, sz int32) (Hanger_hang_Results_List, error)

NewHanger_hang_Results creates a new list of Hanger_hang_Results.

func (Hanger_hang_Results_List) At

func (Hanger_hang_Results_List) Set

type Hanger_hang_Results_Promise

type Hanger_hang_Results_Promise struct{ *capnp.Pipeline }

Hanger_hang_Results_Promise is a wrapper for a Hanger_hang_Results promised by a client call.

func (Hanger_hang_Results_Promise) Struct

Jump to

Keyboard shortcuts

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