capnp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CreateWorkerRequest_TypeID = 0x9ef998d3f122950a

CreateWorkerRequest_TypeID is the unique identifier for the type CreateWorkerRequest.

View Source
const CreateWorkerResponse_TypeID = 0xa0a1e306e1a52cac

CreateWorkerResponse_TypeID is the unique identifier for the type CreateWorkerResponse.

View Source
const DestroyWorkerRequest_TypeID = 0xe66541250dc00ccd

DestroyWorkerRequest_TypeID is the unique identifier for the type DestroyWorkerRequest.

View Source
const DestroyWorkerResponse_TypeID = 0xaf87f588c4828158

DestroyWorkerResponse_TypeID is the unique identifier for the type DestroyWorkerResponse.

View Source
const DummyRequest_TypeID = 0xe682110f8663cbd4

DummyRequest_TypeID is the unique identifier for the type DummyRequest.

View Source
const ExecuteRequest_TypeID = 0xb0d29ba9b094b66c

ExecuteRequest_TypeID is the unique identifier for the type ExecuteRequest.

View Source
const ExecuteResponse_TypeID = 0xe90efdeb78e6cc91

ExecuteResponse_TypeID is the unique identifier for the type ExecuteResponse.

View Source
const GetWorkerRequest_TypeID = 0xefd403356091c80a

GetWorkerRequest_TypeID is the unique identifier for the type GetWorkerRequest.

View Source
const GetWorkerResponse_TypeID = 0xcedd0be75e2ec289

GetWorkerResponse_TypeID is the unique identifier for the type GetWorkerResponse.

View Source
const Message_TypeID = 0xd270ea7f372f79cd

Message_TypeID is the unique identifier for the type Message.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type CreateWorkerRequest

type CreateWorkerRequest capnp.Struct

func NewCreateWorkerRequest

func NewCreateWorkerRequest(s *capnp.Segment) (CreateWorkerRequest, error)

func NewRootCreateWorkerRequest

func NewRootCreateWorkerRequest(s *capnp.Segment) (CreateWorkerRequest, error)

func ReadRootCreateWorkerRequest

func ReadRootCreateWorkerRequest(msg *capnp.Message) (CreateWorkerRequest, error)

func (CreateWorkerRequest) DecodeFromPtr

func (CreateWorkerRequest) EncodeAsPtr

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

func (CreateWorkerRequest) IsValid

func (s CreateWorkerRequest) IsValid() bool

func (CreateWorkerRequest) Message

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

func (CreateWorkerRequest) Segment

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

func (CreateWorkerRequest) String

func (s CreateWorkerRequest) String() string

func (CreateWorkerRequest) ToPtr

func (s CreateWorkerRequest) ToPtr() capnp.Ptr

type CreateWorkerRequest_Future

type CreateWorkerRequest_Future struct{ *capnp.Future }

CreateWorkerRequest_Future is a wrapper for a CreateWorkerRequest promised by a client call.

func (CreateWorkerRequest_Future) Struct

type CreateWorkerRequest_List

type CreateWorkerRequest_List = capnp.StructList[CreateWorkerRequest]

CreateWorkerRequest_List is a list of CreateWorkerRequest.

func NewCreateWorkerRequest_List

func NewCreateWorkerRequest_List(s *capnp.Segment, sz int32) (CreateWorkerRequest_List, error)

NewCreateWorkerRequest creates a new list of CreateWorkerRequest.

type CreateWorkerResponse

type CreateWorkerResponse capnp.Struct

func NewCreateWorkerResponse

func NewCreateWorkerResponse(s *capnp.Segment) (CreateWorkerResponse, error)

func NewRootCreateWorkerResponse

func NewRootCreateWorkerResponse(s *capnp.Segment) (CreateWorkerResponse, error)

func ReadRootCreateWorkerResponse

func ReadRootCreateWorkerResponse(msg *capnp.Message) (CreateWorkerResponse, error)

func (CreateWorkerResponse) DecodeFromPtr

func (CreateWorkerResponse) EncodeAsPtr

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

func (CreateWorkerResponse) Id

func (CreateWorkerResponse) IsValid

func (s CreateWorkerResponse) IsValid() bool

func (CreateWorkerResponse) Message

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

func (CreateWorkerResponse) Segment

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

func (CreateWorkerResponse) SetId

func (s CreateWorkerResponse) SetId(v uint64)

func (CreateWorkerResponse) String

func (s CreateWorkerResponse) String() string

func (CreateWorkerResponse) ToPtr

func (s CreateWorkerResponse) ToPtr() capnp.Ptr

type CreateWorkerResponse_Future

type CreateWorkerResponse_Future struct{ *capnp.Future }

CreateWorkerResponse_Future is a wrapper for a CreateWorkerResponse promised by a client call.

func (CreateWorkerResponse_Future) Struct

type CreateWorkerResponse_List

type CreateWorkerResponse_List = capnp.StructList[CreateWorkerResponse]

CreateWorkerResponse_List is a list of CreateWorkerResponse.

func NewCreateWorkerResponse_List

func NewCreateWorkerResponse_List(s *capnp.Segment, sz int32) (CreateWorkerResponse_List, error)

NewCreateWorkerResponse creates a new list of CreateWorkerResponse.

type DestroyWorkerRequest

type DestroyWorkerRequest capnp.Struct

func NewDestroyWorkerRequest

func NewDestroyWorkerRequest(s *capnp.Segment) (DestroyWorkerRequest, error)

func NewRootDestroyWorkerRequest

func NewRootDestroyWorkerRequest(s *capnp.Segment) (DestroyWorkerRequest, error)

func ReadRootDestroyWorkerRequest

func ReadRootDestroyWorkerRequest(msg *capnp.Message) (DestroyWorkerRequest, error)

func (DestroyWorkerRequest) DecodeFromPtr

func (DestroyWorkerRequest) EncodeAsPtr

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

func (DestroyWorkerRequest) Id

func (DestroyWorkerRequest) IsValid

func (s DestroyWorkerRequest) IsValid() bool

func (DestroyWorkerRequest) Message

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

func (DestroyWorkerRequest) Segment

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

func (DestroyWorkerRequest) SetId

func (s DestroyWorkerRequest) SetId(v uint64)

func (DestroyWorkerRequest) String

func (s DestroyWorkerRequest) String() string

func (DestroyWorkerRequest) ToPtr

func (s DestroyWorkerRequest) ToPtr() capnp.Ptr

type DestroyWorkerRequest_Future

type DestroyWorkerRequest_Future struct{ *capnp.Future }

DestroyWorkerRequest_Future is a wrapper for a DestroyWorkerRequest promised by a client call.

func (DestroyWorkerRequest_Future) Struct

type DestroyWorkerRequest_List

type DestroyWorkerRequest_List = capnp.StructList[DestroyWorkerRequest]

DestroyWorkerRequest_List is a list of DestroyWorkerRequest.

func NewDestroyWorkerRequest_List

func NewDestroyWorkerRequest_List(s *capnp.Segment, sz int32) (DestroyWorkerRequest_List, error)

NewDestroyWorkerRequest creates a new list of DestroyWorkerRequest.

type DestroyWorkerResponse

type DestroyWorkerResponse capnp.Struct

func NewDestroyWorkerResponse

func NewDestroyWorkerResponse(s *capnp.Segment) (DestroyWorkerResponse, error)

func NewRootDestroyWorkerResponse

func NewRootDestroyWorkerResponse(s *capnp.Segment) (DestroyWorkerResponse, error)

func ReadRootDestroyWorkerResponse

func ReadRootDestroyWorkerResponse(msg *capnp.Message) (DestroyWorkerResponse, error)

func (DestroyWorkerResponse) DecodeFromPtr

func (DestroyWorkerResponse) EncodeAsPtr

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

func (DestroyWorkerResponse) IsValid

func (s DestroyWorkerResponse) IsValid() bool

func (DestroyWorkerResponse) Message

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

func (DestroyWorkerResponse) Segment

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

func (DestroyWorkerResponse) String

func (s DestroyWorkerResponse) String() string

func (DestroyWorkerResponse) ToPtr

func (s DestroyWorkerResponse) ToPtr() capnp.Ptr

type DestroyWorkerResponse_Future

type DestroyWorkerResponse_Future struct{ *capnp.Future }

DestroyWorkerResponse_Future is a wrapper for a DestroyWorkerResponse promised by a client call.

func (DestroyWorkerResponse_Future) Struct

type DestroyWorkerResponse_List

type DestroyWorkerResponse_List = capnp.StructList[DestroyWorkerResponse]

DestroyWorkerResponse_List is a list of DestroyWorkerResponse.

func NewDestroyWorkerResponse_List

func NewDestroyWorkerResponse_List(s *capnp.Segment, sz int32) (DestroyWorkerResponse_List, error)

NewDestroyWorkerResponse creates a new list of DestroyWorkerResponse.

type DummyRequest

type DummyRequest capnp.Struct

func NewDummyRequest

func NewDummyRequest(s *capnp.Segment) (DummyRequest, error)

func NewRootDummyRequest

func NewRootDummyRequest(s *capnp.Segment) (DummyRequest, error)

func ReadRootDummyRequest

func ReadRootDummyRequest(msg *capnp.Message) (DummyRequest, error)

func (DummyRequest) DecodeFromPtr

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

func (DummyRequest) EncodeAsPtr

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

func (DummyRequest) IsValid

func (s DummyRequest) IsValid() bool

func (DummyRequest) Message

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

func (DummyRequest) Segment

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

func (DummyRequest) String

func (s DummyRequest) String() string

func (DummyRequest) ToPtr

func (s DummyRequest) ToPtr() capnp.Ptr

type DummyRequest_Future

type DummyRequest_Future struct{ *capnp.Future }

DummyRequest_Future is a wrapper for a DummyRequest promised by a client call.

func (DummyRequest_Future) Struct

func (f DummyRequest_Future) Struct() (DummyRequest, error)

type DummyRequest_List

type DummyRequest_List = capnp.StructList[DummyRequest]

DummyRequest_List is a list of DummyRequest.

func NewDummyRequest_List

func NewDummyRequest_List(s *capnp.Segment, sz int32) (DummyRequest_List, error)

NewDummyRequest creates a new list of DummyRequest.

type ExecuteRequest

type ExecuteRequest capnp.Struct

func NewExecuteRequest

func NewExecuteRequest(s *capnp.Segment) (ExecuteRequest, error)

func NewRootExecuteRequest

func NewRootExecuteRequest(s *capnp.Segment) (ExecuteRequest, error)

func ReadRootExecuteRequest

func ReadRootExecuteRequest(msg *capnp.Message) (ExecuteRequest, error)

func (ExecuteRequest) Args

func (s ExecuteRequest) Args() (capnp.TextList, error)

func (ExecuteRequest) DecodeFromPtr

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

func (ExecuteRequest) EncodeAsPtr

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

func (ExecuteRequest) FilePath

func (s ExecuteRequest) FilePath() (string, error)

func (ExecuteRequest) FilePathBytes

func (s ExecuteRequest) FilePathBytes() ([]byte, error)

func (ExecuteRequest) HasArgs

func (s ExecuteRequest) HasArgs() bool

func (ExecuteRequest) HasFilePath

func (s ExecuteRequest) HasFilePath() bool

func (ExecuteRequest) IsValid

func (s ExecuteRequest) IsValid() bool

func (ExecuteRequest) Message

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

func (ExecuteRequest) NewArgs

func (s ExecuteRequest) NewArgs(n int32) (capnp.TextList, error)

NewArgs sets the args field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (ExecuteRequest) Segment

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

func (ExecuteRequest) SetArgs

func (s ExecuteRequest) SetArgs(v capnp.TextList) error

func (ExecuteRequest) SetFilePath

func (s ExecuteRequest) SetFilePath(v string) error

func (ExecuteRequest) String

func (s ExecuteRequest) String() string

func (ExecuteRequest) ToPtr

func (s ExecuteRequest) ToPtr() capnp.Ptr

type ExecuteRequest_Future

type ExecuteRequest_Future struct{ *capnp.Future }

ExecuteRequest_Future is a wrapper for a ExecuteRequest promised by a client call.

func (ExecuteRequest_Future) Struct

type ExecuteRequest_List

type ExecuteRequest_List = capnp.StructList[ExecuteRequest]

ExecuteRequest_List is a list of ExecuteRequest.

func NewExecuteRequest_List

func NewExecuteRequest_List(s *capnp.Segment, sz int32) (ExecuteRequest_List, error)

NewExecuteRequest creates a new list of ExecuteRequest.

type ExecuteResponse

type ExecuteResponse capnp.Struct

func NewExecuteResponse

func NewExecuteResponse(s *capnp.Segment) (ExecuteResponse, error)

func NewRootExecuteResponse

func NewRootExecuteResponse(s *capnp.Segment) (ExecuteResponse, error)

func ReadRootExecuteResponse

func ReadRootExecuteResponse(msg *capnp.Message) (ExecuteResponse, error)

func (ExecuteResponse) Code

func (s ExecuteResponse) Code() int64

func (ExecuteResponse) DecodeFromPtr

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

func (ExecuteResponse) EncodeAsPtr

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

func (ExecuteResponse) IsValid

func (s ExecuteResponse) IsValid() bool

func (ExecuteResponse) Message

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

func (ExecuteResponse) Segment

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

func (ExecuteResponse) SetCode

func (s ExecuteResponse) SetCode(v int64)

func (ExecuteResponse) String

func (s ExecuteResponse) String() string

func (ExecuteResponse) ToPtr

func (s ExecuteResponse) ToPtr() capnp.Ptr

type ExecuteResponse_Future

type ExecuteResponse_Future struct{ *capnp.Future }

ExecuteResponse_Future is a wrapper for a ExecuteResponse promised by a client call.

func (ExecuteResponse_Future) Struct

type ExecuteResponse_List

type ExecuteResponse_List = capnp.StructList[ExecuteResponse]

ExecuteResponse_List is a list of ExecuteResponse.

func NewExecuteResponse_List

func NewExecuteResponse_List(s *capnp.Segment, sz int32) (ExecuteResponse_List, error)

NewExecuteResponse creates a new list of ExecuteResponse.

type GetWorkerRequest

type GetWorkerRequest capnp.Struct

func NewGetWorkerRequest

func NewGetWorkerRequest(s *capnp.Segment) (GetWorkerRequest, error)

func NewRootGetWorkerRequest

func NewRootGetWorkerRequest(s *capnp.Segment) (GetWorkerRequest, error)

func ReadRootGetWorkerRequest

func ReadRootGetWorkerRequest(msg *capnp.Message) (GetWorkerRequest, error)

func (GetWorkerRequest) DecodeFromPtr

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

func (GetWorkerRequest) EncodeAsPtr

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

func (GetWorkerRequest) Id

func (s GetWorkerRequest) Id() uint64

func (GetWorkerRequest) IsValid

func (s GetWorkerRequest) IsValid() bool

func (GetWorkerRequest) Message

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

func (GetWorkerRequest) Segment

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

func (GetWorkerRequest) SetId

func (s GetWorkerRequest) SetId(v uint64)

func (GetWorkerRequest) String

func (s GetWorkerRequest) String() string

func (GetWorkerRequest) ToPtr

func (s GetWorkerRequest) ToPtr() capnp.Ptr

type GetWorkerRequest_Future

type GetWorkerRequest_Future struct{ *capnp.Future }

GetWorkerRequest_Future is a wrapper for a GetWorkerRequest promised by a client call.

func (GetWorkerRequest_Future) Struct

type GetWorkerRequest_List

type GetWorkerRequest_List = capnp.StructList[GetWorkerRequest]

GetWorkerRequest_List is a list of GetWorkerRequest.

func NewGetWorkerRequest_List

func NewGetWorkerRequest_List(s *capnp.Segment, sz int32) (GetWorkerRequest_List, error)

NewGetWorkerRequest creates a new list of GetWorkerRequest.

type GetWorkerResponse

type GetWorkerResponse capnp.Struct

func NewGetWorkerResponse

func NewGetWorkerResponse(s *capnp.Segment) (GetWorkerResponse, error)

func NewRootGetWorkerResponse

func NewRootGetWorkerResponse(s *capnp.Segment) (GetWorkerResponse, error)

func ReadRootGetWorkerResponse

func ReadRootGetWorkerResponse(msg *capnp.Message) (GetWorkerResponse, error)

func (GetWorkerResponse) DecodeFromPtr

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

func (GetWorkerResponse) EncodeAsPtr

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

func (GetWorkerResponse) HasServiceId

func (s GetWorkerResponse) HasServiceId() bool

func (GetWorkerResponse) HasServiceName

func (s GetWorkerResponse) HasServiceName() bool

func (GetWorkerResponse) IsValid

func (s GetWorkerResponse) IsValid() bool

func (GetWorkerResponse) Message

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

func (GetWorkerResponse) Segment

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

func (GetWorkerResponse) ServiceId

func (s GetWorkerResponse) ServiceId() (string, error)

func (GetWorkerResponse) ServiceIdBytes

func (s GetWorkerResponse) ServiceIdBytes() ([]byte, error)

func (GetWorkerResponse) ServiceName

func (s GetWorkerResponse) ServiceName() (string, error)

func (GetWorkerResponse) ServiceNameBytes

func (s GetWorkerResponse) ServiceNameBytes() ([]byte, error)

func (GetWorkerResponse) SetServiceId

func (s GetWorkerResponse) SetServiceId(v string) error

func (GetWorkerResponse) SetServiceName

func (s GetWorkerResponse) SetServiceName(v string) error

func (GetWorkerResponse) String

func (s GetWorkerResponse) String() string

func (GetWorkerResponse) ToPtr

func (s GetWorkerResponse) ToPtr() capnp.Ptr

type GetWorkerResponse_Future

type GetWorkerResponse_Future struct{ *capnp.Future }

GetWorkerResponse_Future is a wrapper for a GetWorkerResponse promised by a client call.

func (GetWorkerResponse_Future) Struct

type GetWorkerResponse_List

type GetWorkerResponse_List = capnp.StructList[GetWorkerResponse]

GetWorkerResponse_List is a list of GetWorkerResponse.

func NewGetWorkerResponse_List

func NewGetWorkerResponse_List(s *capnp.Segment, sz int32) (GetWorkerResponse_List, error)

NewGetWorkerResponse creates a new list of GetWorkerResponse.

type Message

type Message capnp.Struct

func NewMessage

func NewMessage(s *capnp.Segment) (Message, error)

func NewRootMessage

func NewRootMessage(s *capnp.Segment) (Message, error)

func ReadRootMessage

func ReadRootMessage(msg *capnp.Message) (Message, error)

func (Message) Action

func (s Message) Action() Message_action

func (Message) DecodeFromPtr

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

func (Message) EncodeAsPtr

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

func (Message) IsValid

func (s Message) IsValid() bool

func (Message) Message

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

func (Message) Response

func (s Message) Response() Message_response

func (Message) Segment

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

func (Message) String

func (s Message) String() string

func (Message) ToPtr

func (s Message) ToPtr() capnp.Ptr

type Message_Future

type Message_Future struct{ *capnp.Future }

Message_Future is a wrapper for a Message promised by a client call.

func (Message_Future) Action

func (Message_Future) Response

func (Message_Future) Struct

func (f Message_Future) Struct() (Message, error)

type Message_List

type Message_List = capnp.StructList[Message]

Message_List is a list of Message.

func NewMessage_List

func NewMessage_List(s *capnp.Segment, sz int32) (Message_List, error)

NewMessage creates a new list of Message.

type Message_action

type Message_action Message

func (Message_action) CreateWorker

func (s Message_action) CreateWorker() (CreateWorkerRequest, error)

func (Message_action) DestroyWorker

func (s Message_action) DestroyWorker() (DestroyWorkerRequest, error)

func (Message_action) DummyRequest

func (s Message_action) DummyRequest() (DummyRequest, error)

func (Message_action) Execute

func (s Message_action) Execute() (ExecuteRequest, error)

func (Message_action) GetWorker

func (s Message_action) GetWorker() (GetWorkerRequest, error)

func (Message_action) HasCreateWorker

func (s Message_action) HasCreateWorker() bool

func (Message_action) HasDestroyWorker

func (s Message_action) HasDestroyWorker() bool

func (Message_action) HasDummyRequest

func (s Message_action) HasDummyRequest() bool

func (Message_action) HasExecute

func (s Message_action) HasExecute() bool

func (Message_action) HasGetWorker

func (s Message_action) HasGetWorker() bool

func (Message_action) IsValid

func (s Message_action) IsValid() bool

func (Message_action) Message

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

func (Message_action) NewCreateWorker

func (s Message_action) NewCreateWorker() (CreateWorkerRequest, error)

NewCreateWorker sets the createWorker field to a newly allocated CreateWorkerRequest struct, preferring placement in s's segment.

func (Message_action) NewDestroyWorker

func (s Message_action) NewDestroyWorker() (DestroyWorkerRequest, error)

NewDestroyWorker sets the destroyWorker field to a newly allocated DestroyWorkerRequest struct, preferring placement in s's segment.

func (Message_action) NewDummyRequest

func (s Message_action) NewDummyRequest() (DummyRequest, error)

NewDummyRequest sets the dummyRequest field to a newly allocated DummyRequest struct, preferring placement in s's segment.

func (Message_action) NewExecute

func (s Message_action) NewExecute() (ExecuteRequest, error)

NewExecute sets the execute field to a newly allocated ExecuteRequest struct, preferring placement in s's segment.

func (Message_action) NewGetWorker

func (s Message_action) NewGetWorker() (GetWorkerRequest, error)

NewGetWorker sets the getWorker field to a newly allocated GetWorkerRequest struct, preferring placement in s's segment.

func (Message_action) Segment

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

func (Message_action) SetCreateWorker

func (s Message_action) SetCreateWorker(v CreateWorkerRequest) error

func (Message_action) SetDestroyWorker

func (s Message_action) SetDestroyWorker(v DestroyWorkerRequest) error

func (Message_action) SetDummyRequest

func (s Message_action) SetDummyRequest(v DummyRequest) error

func (Message_action) SetExecute

func (s Message_action) SetExecute(v ExecuteRequest) error

func (Message_action) SetGetWorker

func (s Message_action) SetGetWorker(v GetWorkerRequest) error

func (Message_action) Which

type Message_action_Future

type Message_action_Future struct{ *capnp.Future }

Message_action_Future is a wrapper for a Message_action promised by a client call.

func (Message_action_Future) CreateWorker

func (Message_action_Future) DestroyWorker

func (Message_action_Future) DummyRequest

func (p Message_action_Future) DummyRequest() DummyRequest_Future

func (Message_action_Future) Execute

func (Message_action_Future) GetWorker

func (Message_action_Future) Struct

type Message_action_Which

type Message_action_Which uint16
const (
	Message_action_Which_createWorker  Message_action_Which = 0
	Message_action_Which_destroyWorker Message_action_Which = 1
	Message_action_Which_getWorker     Message_action_Which = 2
	Message_action_Which_execute       Message_action_Which = 3
	Message_action_Which_dummyRequest  Message_action_Which = 4
)

func (Message_action_Which) String

func (w Message_action_Which) String() string

type Message_response

type Message_response Message

func (Message_response) CreateWorker

func (s Message_response) CreateWorker() (CreateWorkerResponse, error)

func (Message_response) DestroyWorker

func (s Message_response) DestroyWorker() (DestroyWorkerResponse, error)

func (Message_response) Execute

func (s Message_response) Execute() (ExecuteResponse, error)

func (Message_response) GetWorker

func (s Message_response) GetWorker() (GetWorkerResponse, error)

func (Message_response) HasCreateWorker

func (s Message_response) HasCreateWorker() bool

func (Message_response) HasDestroyWorker

func (s Message_response) HasDestroyWorker() bool

func (Message_response) HasExecute

func (s Message_response) HasExecute() bool

func (Message_response) HasGetWorker

func (s Message_response) HasGetWorker() bool

func (Message_response) IsValid

func (s Message_response) IsValid() bool

func (Message_response) Message

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

func (Message_response) NewCreateWorker

func (s Message_response) NewCreateWorker() (CreateWorkerResponse, error)

NewCreateWorker sets the createWorker field to a newly allocated CreateWorkerResponse struct, preferring placement in s's segment.

func (Message_response) NewDestroyWorker

func (s Message_response) NewDestroyWorker() (DestroyWorkerResponse, error)

NewDestroyWorker sets the destroyWorker field to a newly allocated DestroyWorkerResponse struct, preferring placement in s's segment.

func (Message_response) NewExecute

func (s Message_response) NewExecute() (ExecuteResponse, error)

NewExecute sets the execute field to a newly allocated ExecuteResponse struct, preferring placement in s's segment.

func (Message_response) NewGetWorker

func (s Message_response) NewGetWorker() (GetWorkerResponse, error)

NewGetWorker sets the getWorker field to a newly allocated GetWorkerResponse struct, preferring placement in s's segment.

func (Message_response) Segment

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

func (Message_response) SetCreateWorker

func (s Message_response) SetCreateWorker(v CreateWorkerResponse) error

func (Message_response) SetDestroyWorker

func (s Message_response) SetDestroyWorker(v DestroyWorkerResponse) error

func (Message_response) SetExecute

func (s Message_response) SetExecute(v ExecuteResponse) error

func (Message_response) SetGetWorker

func (s Message_response) SetGetWorker(v GetWorkerResponse) error

func (Message_response) Which

type Message_response_Future

type Message_response_Future struct{ *capnp.Future }

Message_response_Future is a wrapper for a Message_response promised by a client call.

func (Message_response_Future) CreateWorker

func (Message_response_Future) DestroyWorker

func (Message_response_Future) Execute

func (Message_response_Future) GetWorker

func (Message_response_Future) Struct

type Message_response_Which

type Message_response_Which uint16
const (
	Message_response_Which_createWorker  Message_response_Which = 0
	Message_response_Which_destroyWorker Message_response_Which = 1
	Message_response_Which_getWorker     Message_response_Which = 2
	Message_response_Which_execute       Message_response_Which = 3
)

func (Message_response_Which) String

func (w Message_response_Which) String() string

Jump to

Keyboard shortcuts

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