Documentation ¶
Index ¶
- Constants
- func Admin_Methods(methods []server.Method, s Admin_Server) []server.Method
- func Admin_NewServer(s Admin_Server) *server.Server
- func Factory_Methods(methods []server.Method, s Factory_Server) []server.Method
- func Factory_NewServer(s Factory_Server) *server.Server
- func RegisterSchema(reg *schemas.Registry)
- func SimpleFactory_Methods(methods []server.Method, s SimpleFactory_Server) []server.Method
- func SimpleFactory_NewServer(s SimpleFactory_Server) *server.Server
- func Stopable_Methods(methods []server.Method, s Stopable_Server) []server.Method
- func Stopable_NewServer(s Stopable_Server) *server.Server
- type Admin
- func (c Admin) AddRef() Admin
- func (Admin) DecodeFromPtr(p capnp.Ptr) Admin
- func (c Admin) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Admin) GetFlowLimiter() fc.FlowLimiter
- func (c Admin) Heartbeat(ctx context.Context, params func(Admin_heartbeat_Params) error) (Admin_heartbeat_Results_Future, capnp.ReleaseFunc)
- func (c Admin) Identities(ctx context.Context, params func(Admin_identities_Params) error) (Admin_identities_Results_Future, capnp.ReleaseFunc)
- func (c Admin) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
- func (c Admin) IsSame(other Admin) bool
- func (c Admin) IsValid() bool
- func (c Admin) Release()
- func (c Admin) Resolve(ctx context.Context) error
- func (c Admin) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Admin) SetTimeout(ctx context.Context, params func(Admin_setTimeout_Params) error) (Admin_setTimeout_Results_Future, capnp.ReleaseFunc)
- func (c Admin) Stop(ctx context.Context, params func(Admin_stop_Params) error) (Admin_stop_Results_Future, capnp.ReleaseFunc)
- func (c Admin) String() string
- func (c Admin) UpdateIdentity(ctx context.Context, params func(Admin_updateIdentity_Params) error) (Admin_updateIdentity_Results_Future, capnp.ReleaseFunc)
- func (c Admin) WaitStreaming() error
- type Admin_List
- type Admin_Server
- type Admin_heartbeat
- type Admin_heartbeat_Params
- func (Admin_heartbeat_Params) DecodeFromPtr(p capnp.Ptr) Admin_heartbeat_Params
- func (s Admin_heartbeat_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_heartbeat_Params) IsValid() bool
- func (s Admin_heartbeat_Params) Message() *capnp.Message
- func (s Admin_heartbeat_Params) Segment() *capnp.Segment
- func (s Admin_heartbeat_Params) String() string
- func (s Admin_heartbeat_Params) ToPtr() capnp.Ptr
- type Admin_heartbeat_Params_Future
- type Admin_heartbeat_Params_List
- type Admin_heartbeat_Results
- func (Admin_heartbeat_Results) DecodeFromPtr(p capnp.Ptr) Admin_heartbeat_Results
- func (s Admin_heartbeat_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_heartbeat_Results) IsValid() bool
- func (s Admin_heartbeat_Results) Message() *capnp.Message
- func (s Admin_heartbeat_Results) Segment() *capnp.Segment
- func (s Admin_heartbeat_Results) String() string
- func (s Admin_heartbeat_Results) ToPtr() capnp.Ptr
- type Admin_heartbeat_Results_Future
- type Admin_heartbeat_Results_List
- type Admin_identities
- type Admin_identities_Params
- func (Admin_identities_Params) DecodeFromPtr(p capnp.Ptr) Admin_identities_Params
- func (s Admin_identities_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_identities_Params) IsValid() bool
- func (s Admin_identities_Params) Message() *capnp.Message
- func (s Admin_identities_Params) Segment() *capnp.Segment
- func (s Admin_identities_Params) String() string
- func (s Admin_identities_Params) ToPtr() capnp.Ptr
- type Admin_identities_Params_Future
- type Admin_identities_Params_List
- type Admin_identities_Results
- func (Admin_identities_Results) DecodeFromPtr(p capnp.Ptr) Admin_identities_Results
- func (s Admin_identities_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_identities_Results) HasInfos() bool
- func (s Admin_identities_Results) Infos() (common.IdInformation_List, error)
- func (s Admin_identities_Results) IsValid() bool
- func (s Admin_identities_Results) Message() *capnp.Message
- func (s Admin_identities_Results) NewInfos(n int32) (common.IdInformation_List, error)
- func (s Admin_identities_Results) Segment() *capnp.Segment
- func (s Admin_identities_Results) SetInfos(v common.IdInformation_List) error
- func (s Admin_identities_Results) String() string
- func (s Admin_identities_Results) ToPtr() capnp.Ptr
- type Admin_identities_Results_Future
- type Admin_identities_Results_List
- type Admin_setTimeout
- type Admin_setTimeout_Params
- func (Admin_setTimeout_Params) DecodeFromPtr(p capnp.Ptr) Admin_setTimeout_Params
- func (s Admin_setTimeout_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_setTimeout_Params) IsValid() bool
- func (s Admin_setTimeout_Params) Message() *capnp.Message
- func (s Admin_setTimeout_Params) Seconds() uint64
- func (s Admin_setTimeout_Params) Segment() *capnp.Segment
- func (s Admin_setTimeout_Params) SetSeconds(v uint64)
- func (s Admin_setTimeout_Params) String() string
- func (s Admin_setTimeout_Params) ToPtr() capnp.Ptr
- type Admin_setTimeout_Params_Future
- type Admin_setTimeout_Params_List
- type Admin_setTimeout_Results
- func (Admin_setTimeout_Results) DecodeFromPtr(p capnp.Ptr) Admin_setTimeout_Results
- func (s Admin_setTimeout_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_setTimeout_Results) IsValid() bool
- func (s Admin_setTimeout_Results) Message() *capnp.Message
- func (s Admin_setTimeout_Results) Segment() *capnp.Segment
- func (s Admin_setTimeout_Results) String() string
- func (s Admin_setTimeout_Results) ToPtr() capnp.Ptr
- type Admin_setTimeout_Results_Future
- type Admin_setTimeout_Results_List
- type Admin_stop
- type Admin_stop_Params
- func (Admin_stop_Params) DecodeFromPtr(p capnp.Ptr) Admin_stop_Params
- func (s Admin_stop_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_stop_Params) IsValid() bool
- func (s Admin_stop_Params) Message() *capnp.Message
- func (s Admin_stop_Params) Segment() *capnp.Segment
- func (s Admin_stop_Params) String() string
- func (s Admin_stop_Params) ToPtr() capnp.Ptr
- type Admin_stop_Params_Future
- type Admin_stop_Params_List
- type Admin_stop_Results
- func (Admin_stop_Results) DecodeFromPtr(p capnp.Ptr) Admin_stop_Results
- func (s Admin_stop_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_stop_Results) IsValid() bool
- func (s Admin_stop_Results) Message() *capnp.Message
- func (s Admin_stop_Results) Segment() *capnp.Segment
- func (s Admin_stop_Results) String() string
- func (s Admin_stop_Results) ToPtr() capnp.Ptr
- type Admin_stop_Results_Future
- type Admin_stop_Results_List
- type Admin_updateIdentity
- type Admin_updateIdentity_Params
- func (Admin_updateIdentity_Params) DecodeFromPtr(p capnp.Ptr) Admin_updateIdentity_Params
- func (s Admin_updateIdentity_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_updateIdentity_Params) HasNewInfo() bool
- func (s Admin_updateIdentity_Params) HasOldId() bool
- func (s Admin_updateIdentity_Params) IsValid() bool
- func (s Admin_updateIdentity_Params) Message() *capnp.Message
- func (s Admin_updateIdentity_Params) NewInfo() (common.IdInformation, error)
- func (s Admin_updateIdentity_Params) NewNewInfo() (common.IdInformation, error)
- func (s Admin_updateIdentity_Params) OldId() (string, error)
- func (s Admin_updateIdentity_Params) OldIdBytes() ([]byte, error)
- func (s Admin_updateIdentity_Params) Segment() *capnp.Segment
- func (s Admin_updateIdentity_Params) SetNewInfo(v common.IdInformation) error
- func (s Admin_updateIdentity_Params) SetOldId(v string) error
- func (s Admin_updateIdentity_Params) String() string
- func (s Admin_updateIdentity_Params) ToPtr() capnp.Ptr
- type Admin_updateIdentity_Params_Future
- type Admin_updateIdentity_Params_List
- type Admin_updateIdentity_Results
- func (Admin_updateIdentity_Results) DecodeFromPtr(p capnp.Ptr) Admin_updateIdentity_Results
- func (s Admin_updateIdentity_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Admin_updateIdentity_Results) IsValid() bool
- func (s Admin_updateIdentity_Results) Message() *capnp.Message
- func (s Admin_updateIdentity_Results) Segment() *capnp.Segment
- func (s Admin_updateIdentity_Results) String() string
- func (s Admin_updateIdentity_Results) ToPtr() capnp.Ptr
- type Admin_updateIdentity_Results_Future
- type Admin_updateIdentity_Results_List
- type Factory
- func (c Factory) AddRef() Factory
- func (c Factory) Create(ctx context.Context, params func(Factory_CreateParams) error) (Factory_AccessInfo_Future, capnp.ReleaseFunc)
- func (Factory) DecodeFromPtr(p capnp.Ptr) Factory
- func (c Factory) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Factory) GetFlowLimiter() fc.FlowLimiter
- func (c Factory) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
- func (c Factory) IsSame(other Factory) bool
- func (c Factory) IsValid() bool
- func (c Factory) Release()
- func (c Factory) Resolve(ctx context.Context) error
- func (c Factory) ServiceInterfaceNames(ctx context.Context, params func(Factory_serviceInterfaceNames_Params) error) (Factory_serviceInterfaceNames_Results_Future, capnp.ReleaseFunc)
- func (c Factory) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Factory) String() string
- func (c Factory) WaitStreaming() error
- type Factory_AccessInfo
- func (s Factory_AccessInfo) AdminCap() capnp.Client
- func (Factory_AccessInfo) DecodeFromPtr(p capnp.Ptr) Factory_AccessInfo
- func (s Factory_AccessInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Factory_AccessInfo) Error() (string, error)
- func (s Factory_AccessInfo) ErrorBytes() ([]byte, error)
- func (s Factory_AccessInfo) HasAdminCap() bool
- func (s Factory_AccessInfo) HasError() bool
- func (s Factory_AccessInfo) HasServiceCaps() bool
- func (s Factory_AccessInfo) IsValid() bool
- func (s Factory_AccessInfo) Message() *capnp.Message
- func (s Factory_AccessInfo) NewServiceCaps(n int32) (common.Identifiable_List, error)
- func (s Factory_AccessInfo) Segment() *capnp.Segment
- func (s Factory_AccessInfo) ServiceCaps() (common.Identifiable_List, error)
- func (s Factory_AccessInfo) SetAdminCap(c capnp.Client) error
- func (s Factory_AccessInfo) SetError(v string) error
- func (s Factory_AccessInfo) SetServiceCaps(v common.Identifiable_List) error
- func (s Factory_AccessInfo) String() string
- func (s Factory_AccessInfo) ToPtr() capnp.Ptr
- type Factory_AccessInfo_Future
- type Factory_AccessInfo_List
- type Factory_CreateParams
- func (Factory_CreateParams) DecodeFromPtr(p capnp.Ptr) Factory_CreateParams
- func (s Factory_CreateParams) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Factory_CreateParams) HasInterfaceNameToRegistrySR() bool
- func (s Factory_CreateParams) HasMsgPayload() bool
- func (s Factory_CreateParams) InterfaceNameToRegistrySR() (common.Pair_List, error)
- func (s Factory_CreateParams) IsValid() bool
- func (s Factory_CreateParams) Message() *capnp.Message
- func (s Factory_CreateParams) MsgPayload() (capnp.Ptr, error)
- func (s Factory_CreateParams) NewInterfaceNameToRegistrySR(n int32) (common.Pair_List, error)
- func (s Factory_CreateParams) Segment() *capnp.Segment
- func (s Factory_CreateParams) SetInterfaceNameToRegistrySR(v common.Pair_List) error
- func (s Factory_CreateParams) SetMsgPayload(v capnp.Ptr) error
- func (s Factory_CreateParams) SetTimeoutSeconds(v uint64)
- func (s Factory_CreateParams) String() string
- func (s Factory_CreateParams) TimeoutSeconds() uint64
- func (s Factory_CreateParams) ToPtr() capnp.Ptr
- type Factory_CreateParams_Future
- type Factory_CreateParams_List
- type Factory_List
- type Factory_Server
- type Factory_create
- type Factory_serviceInterfaceNames
- type Factory_serviceInterfaceNames_Params
- func NewFactory_serviceInterfaceNames_Params(s *capnp.Segment) (Factory_serviceInterfaceNames_Params, error)
- func NewRootFactory_serviceInterfaceNames_Params(s *capnp.Segment) (Factory_serviceInterfaceNames_Params, error)
- func ReadRootFactory_serviceInterfaceNames_Params(msg *capnp.Message) (Factory_serviceInterfaceNames_Params, error)
- func (Factory_serviceInterfaceNames_Params) DecodeFromPtr(p capnp.Ptr) Factory_serviceInterfaceNames_Params
- func (s Factory_serviceInterfaceNames_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Factory_serviceInterfaceNames_Params) IsValid() bool
- func (s Factory_serviceInterfaceNames_Params) Message() *capnp.Message
- func (s Factory_serviceInterfaceNames_Params) Segment() *capnp.Segment
- func (s Factory_serviceInterfaceNames_Params) String() string
- func (s Factory_serviceInterfaceNames_Params) ToPtr() capnp.Ptr
- type Factory_serviceInterfaceNames_Params_Future
- type Factory_serviceInterfaceNames_Params_List
- type Factory_serviceInterfaceNames_Results
- func NewFactory_serviceInterfaceNames_Results(s *capnp.Segment) (Factory_serviceInterfaceNames_Results, error)
- func NewRootFactory_serviceInterfaceNames_Results(s *capnp.Segment) (Factory_serviceInterfaceNames_Results, error)
- func ReadRootFactory_serviceInterfaceNames_Results(msg *capnp.Message) (Factory_serviceInterfaceNames_Results, error)
- func (Factory_serviceInterfaceNames_Results) DecodeFromPtr(p capnp.Ptr) Factory_serviceInterfaceNames_Results
- func (s Factory_serviceInterfaceNames_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Factory_serviceInterfaceNames_Results) HasNames() bool
- func (s Factory_serviceInterfaceNames_Results) IsValid() bool
- func (s Factory_serviceInterfaceNames_Results) Message() *capnp.Message
- func (s Factory_serviceInterfaceNames_Results) Names() (capnp.TextList, error)
- func (s Factory_serviceInterfaceNames_Results) NewNames(n int32) (capnp.TextList, error)
- func (s Factory_serviceInterfaceNames_Results) Segment() *capnp.Segment
- func (s Factory_serviceInterfaceNames_Results) SetNames(v capnp.TextList) error
- func (s Factory_serviceInterfaceNames_Results) String() string
- func (s Factory_serviceInterfaceNames_Results) ToPtr() capnp.Ptr
- type Factory_serviceInterfaceNames_Results_Future
- type Factory_serviceInterfaceNames_Results_List
- type SimpleFactory
- func (c SimpleFactory) AddRef() SimpleFactory
- func (c SimpleFactory) Create(ctx context.Context, params func(SimpleFactory_create_Params) error) (SimpleFactory_create_Results_Future, capnp.ReleaseFunc)
- func (SimpleFactory) DecodeFromPtr(p capnp.Ptr) SimpleFactory
- func (c SimpleFactory) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c SimpleFactory) GetFlowLimiter() fc.FlowLimiter
- func (c SimpleFactory) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
- func (c SimpleFactory) IsSame(other SimpleFactory) bool
- func (c SimpleFactory) IsValid() bool
- func (c SimpleFactory) Release()
- func (c SimpleFactory) Resolve(ctx context.Context) error
- func (c SimpleFactory) SetFlowLimiter(lim fc.FlowLimiter)
- func (c SimpleFactory) String() string
- func (c SimpleFactory) WaitStreaming() error
- type SimpleFactory_List
- type SimpleFactory_Server
- type SimpleFactory_create
- type SimpleFactory_create_Params
- func (SimpleFactory_create_Params) DecodeFromPtr(p capnp.Ptr) SimpleFactory_create_Params
- func (s SimpleFactory_create_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s SimpleFactory_create_Params) IsValid() bool
- func (s SimpleFactory_create_Params) Message() *capnp.Message
- func (s SimpleFactory_create_Params) Segment() *capnp.Segment
- func (s SimpleFactory_create_Params) String() string
- func (s SimpleFactory_create_Params) ToPtr() capnp.Ptr
- type SimpleFactory_create_Params_Future
- type SimpleFactory_create_Params_List
- type SimpleFactory_create_Results
- func (s SimpleFactory_create_Results) Caps() (common.Identifiable_List, error)
- func (SimpleFactory_create_Results) DecodeFromPtr(p capnp.Ptr) SimpleFactory_create_Results
- func (s SimpleFactory_create_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s SimpleFactory_create_Results) HasCaps() bool
- func (s SimpleFactory_create_Results) IsValid() bool
- func (s SimpleFactory_create_Results) Message() *capnp.Message
- func (s SimpleFactory_create_Results) NewCaps(n int32) (common.Identifiable_List, error)
- func (s SimpleFactory_create_Results) Segment() *capnp.Segment
- func (s SimpleFactory_create_Results) SetCaps(v common.Identifiable_List) error
- func (s SimpleFactory_create_Results) String() string
- func (s SimpleFactory_create_Results) ToPtr() capnp.Ptr
- type SimpleFactory_create_Results_Future
- type SimpleFactory_create_Results_List
- type Stopable
- func (c Stopable) AddRef() Stopable
- func (Stopable) DecodeFromPtr(p capnp.Ptr) Stopable
- func (c Stopable) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Stopable) GetFlowLimiter() fc.FlowLimiter
- func (c Stopable) IsSame(other Stopable) bool
- func (c Stopable) IsValid() bool
- func (c Stopable) Release()
- func (c Stopable) Resolve(ctx context.Context) error
- func (c Stopable) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Stopable) Stop(ctx context.Context, params func(Stopable_stop_Params) error) (Stopable_stop_Results_Future, capnp.ReleaseFunc)
- func (c Stopable) String() string
- func (c Stopable) WaitStreaming() error
- type Stopable_List
- type Stopable_Server
- type Stopable_stop
- type Stopable_stop_Params
- func (Stopable_stop_Params) DecodeFromPtr(p capnp.Ptr) Stopable_stop_Params
- func (s Stopable_stop_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Stopable_stop_Params) IsValid() bool
- func (s Stopable_stop_Params) Message() *capnp.Message
- func (s Stopable_stop_Params) Segment() *capnp.Segment
- func (s Stopable_stop_Params) String() string
- func (s Stopable_stop_Params) ToPtr() capnp.Ptr
- type Stopable_stop_Params_Future
- type Stopable_stop_Params_List
- type Stopable_stop_Results
- func (Stopable_stop_Results) DecodeFromPtr(p capnp.Ptr) Stopable_stop_Results
- func (s Stopable_stop_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Stopable_stop_Results) IsValid() bool
- func (s Stopable_stop_Results) Message() *capnp.Message
- func (s Stopable_stop_Results) Segment() *capnp.Segment
- func (s Stopable_stop_Results) String() string
- func (s Stopable_stop_Results) ToPtr() capnp.Ptr
- type Stopable_stop_Results_Future
- type Stopable_stop_Results_List
Constants ¶
const Admin_TypeID = 0xfec1f88b198df649
Admin_TypeID is the unique identifier for the type Admin.
const Admin_heartbeat_Params_TypeID = 0xd627f31bdae7f234
Admin_heartbeat_Params_TypeID is the unique identifier for the type Admin_heartbeat_Params.
const Admin_heartbeat_Results_TypeID = 0xe01c2290ae549759
Admin_heartbeat_Results_TypeID is the unique identifier for the type Admin_heartbeat_Results.
const Admin_identities_Params_TypeID = 0xff4271628d295896
Admin_identities_Params_TypeID is the unique identifier for the type Admin_identities_Params.
const Admin_identities_Results_TypeID = 0xf5423d8578dbb398
Admin_identities_Results_TypeID is the unique identifier for the type Admin_identities_Results.
const Admin_setTimeout_Params_TypeID = 0x9abf358a691110fd
Admin_setTimeout_Params_TypeID is the unique identifier for the type Admin_setTimeout_Params.
const Admin_setTimeout_Results_TypeID = 0xd6fd194a1ac74bc1
Admin_setTimeout_Results_TypeID is the unique identifier for the type Admin_setTimeout_Results.
const Admin_stop_Params_TypeID = 0xddc3d3cd37ef5b78
Admin_stop_Params_TypeID is the unique identifier for the type Admin_stop_Params.
const Admin_stop_Results_TypeID = 0xce2a1a063e759787
Admin_stop_Results_TypeID is the unique identifier for the type Admin_stop_Results.
const Admin_updateIdentity_Params_TypeID = 0xdc8472f9b668ba83
Admin_updateIdentity_Params_TypeID is the unique identifier for the type Admin_updateIdentity_Params.
const Admin_updateIdentity_Results_TypeID = 0xb15e79db08e2ab2c
Admin_updateIdentity_Results_TypeID is the unique identifier for the type Admin_updateIdentity_Results.
const Factory_AccessInfo_TypeID = 0xb9816a53df7cb62e
Factory_AccessInfo_TypeID is the unique identifier for the type Factory_AccessInfo.
const Factory_CreateParams_TypeID = 0xc2b88517ccaa9197
Factory_CreateParams_TypeID is the unique identifier for the type Factory_CreateParams.
const Factory_TypeID = 0x8ab0ecb99c269c7f
Factory_TypeID is the unique identifier for the type Factory.
const Factory_serviceInterfaceNames_Params_TypeID = 0xd4d567352ab3882a
Factory_serviceInterfaceNames_Params_TypeID is the unique identifier for the type Factory_serviceInterfaceNames_Params.
const Factory_serviceInterfaceNames_Results_TypeID = 0xa962c127b5dccf05
Factory_serviceInterfaceNames_Results_TypeID is the unique identifier for the type Factory_serviceInterfaceNames_Results.
const SimpleFactory_TypeID = 0xaba5829222c213cb
SimpleFactory_TypeID is the unique identifier for the type SimpleFactory.
const SimpleFactory_create_Params_TypeID = 0xa8296fdc60dcb6dd
SimpleFactory_create_Params_TypeID is the unique identifier for the type SimpleFactory_create_Params.
const SimpleFactory_create_Results_TypeID = 0x89a33828e0de1eaa
SimpleFactory_create_Results_TypeID is the unique identifier for the type SimpleFactory_create_Results.
const Stopable_TypeID = 0xe9d1be2a6e9016e5
Stopable_TypeID is the unique identifier for the type Stopable.
const Stopable_stop_Params_TypeID = 0xd2e4f20669b7b705
Stopable_stop_Params_TypeID is the unique identifier for the type Stopable_stop_Params.
const Stopable_stop_Results_TypeID = 0x96368058e2cef1ac
Stopable_stop_Results_TypeID is the unique identifier for the type Stopable_stop_Results.
Variables ¶
This section is empty.
Functions ¶
func Admin_Methods ¶
func Admin_Methods(methods []server.Method, s Admin_Server) []server.Method
Admin_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Admin_NewServer ¶
func Admin_NewServer(s Admin_Server) *server.Server
Admin_NewServer creates a new Server from an implementation of Admin_Server.
func Factory_Methods ¶
func Factory_Methods(methods []server.Method, s Factory_Server) []server.Method
Factory_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Factory_NewServer ¶
func Factory_NewServer(s Factory_Server) *server.Server
Factory_NewServer creates a new Server from an implementation of Factory_Server.
func RegisterSchema ¶
func SimpleFactory_Methods ¶
func SimpleFactory_Methods(methods []server.Method, s SimpleFactory_Server) []server.Method
SimpleFactory_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func SimpleFactory_NewServer ¶
func SimpleFactory_NewServer(s SimpleFactory_Server) *server.Server
SimpleFactory_NewServer creates a new Server from an implementation of SimpleFactory_Server.
func Stopable_Methods ¶
func Stopable_Methods(methods []server.Method, s Stopable_Server) []server.Method
Stopable_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Stopable_NewServer ¶
func Stopable_NewServer(s Stopable_Server) *server.Server
Stopable_NewServer creates a new Server from an implementation of Stopable_Server.
Types ¶
type Admin ¶
func Admin_ServerToClient ¶
func Admin_ServerToClient(s Admin_Server) Admin
Admin_ServerToClient creates a new Client from an implementation of Admin_Server. The caller is responsible for calling Release on the returned Client.
func (Admin) 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 (Admin) GetFlowLimiter ¶
func (c Admin) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Admin) Heartbeat ¶
func (c Admin) Heartbeat(ctx context.Context, params func(Admin_heartbeat_Params) error) (Admin_heartbeat_Results_Future, capnp.ReleaseFunc)
func (Admin) Identities ¶
func (c Admin) Identities(ctx context.Context, params func(Admin_identities_Params) error) (Admin_identities_Results_Future, capnp.ReleaseFunc)
func (Admin) Info ¶
func (c Admin) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
func (Admin) 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 (Admin) 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 (Admin) Release ¶
func (c Admin) 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 (Admin) Resolve ¶
Resolve blocks until the capability is fully resolved or the Context expires.
func (Admin) SetFlowLimiter ¶
func (c Admin) 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 (Admin) SetTimeout ¶
func (c Admin) SetTimeout(ctx context.Context, params func(Admin_setTimeout_Params) error) (Admin_setTimeout_Results_Future, capnp.ReleaseFunc)
func (Admin) Stop ¶
func (c Admin) Stop(ctx context.Context, params func(Admin_stop_Params) error) (Admin_stop_Results_Future, capnp.ReleaseFunc)
func (Admin) 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 (Admin) UpdateIdentity ¶
func (c Admin) UpdateIdentity(ctx context.Context, params func(Admin_updateIdentity_Params) error) (Admin_updateIdentity_Results_Future, capnp.ReleaseFunc)
func (Admin) WaitStreaming ¶
type Admin_List ¶
Admin_List is a list of Admin.
func NewAdmin_List ¶
func NewAdmin_List(s *capnp.Segment, sz int32) (Admin_List, error)
NewAdmin_List creates a new list of Admin.
type Admin_Server ¶
type Admin_Server interface { Heartbeat(context.Context, Admin_heartbeat) error SetTimeout(context.Context, Admin_setTimeout) error Stop(context.Context, Admin_stop) error Identities(context.Context, Admin_identities) error UpdateIdentity(context.Context, Admin_updateIdentity) error Info(context.Context, common.Identifiable_info) error }
A Admin_Server is a Admin with a local implementation.
type Admin_heartbeat ¶
Admin_heartbeat holds the state for a server call to Admin.heartbeat. See server.Call for documentation.
func (Admin_heartbeat) AllocResults ¶
func (c Admin_heartbeat) AllocResults() (Admin_heartbeat_Results, error)
AllocResults allocates the results struct.
func (Admin_heartbeat) Args ¶
func (c Admin_heartbeat) Args() Admin_heartbeat_Params
Args returns the call's arguments.
type Admin_heartbeat_Params ¶
func NewAdmin_heartbeat_Params ¶
func NewAdmin_heartbeat_Params(s *capnp.Segment) (Admin_heartbeat_Params, error)
func NewRootAdmin_heartbeat_Params ¶
func NewRootAdmin_heartbeat_Params(s *capnp.Segment) (Admin_heartbeat_Params, error)
func ReadRootAdmin_heartbeat_Params ¶
func ReadRootAdmin_heartbeat_Params(msg *capnp.Message) (Admin_heartbeat_Params, error)
func (Admin_heartbeat_Params) DecodeFromPtr ¶
func (Admin_heartbeat_Params) DecodeFromPtr(p capnp.Ptr) Admin_heartbeat_Params
func (Admin_heartbeat_Params) EncodeAsPtr ¶
func (s Admin_heartbeat_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_heartbeat_Params) IsValid ¶
func (s Admin_heartbeat_Params) IsValid() bool
func (Admin_heartbeat_Params) Message ¶
func (s Admin_heartbeat_Params) Message() *capnp.Message
func (Admin_heartbeat_Params) Segment ¶
func (s Admin_heartbeat_Params) Segment() *capnp.Segment
func (Admin_heartbeat_Params) String ¶
func (s Admin_heartbeat_Params) String() string
func (Admin_heartbeat_Params) ToPtr ¶
func (s Admin_heartbeat_Params) ToPtr() capnp.Ptr
type Admin_heartbeat_Params_Future ¶
Admin_heartbeat_Params_Future is a wrapper for a Admin_heartbeat_Params promised by a client call.
func (Admin_heartbeat_Params_Future) Struct ¶
func (f Admin_heartbeat_Params_Future) Struct() (Admin_heartbeat_Params, error)
type Admin_heartbeat_Params_List ¶
type Admin_heartbeat_Params_List = capnp.StructList[Admin_heartbeat_Params]
Admin_heartbeat_Params_List is a list of Admin_heartbeat_Params.
func NewAdmin_heartbeat_Params_List ¶
func NewAdmin_heartbeat_Params_List(s *capnp.Segment, sz int32) (Admin_heartbeat_Params_List, error)
NewAdmin_heartbeat_Params creates a new list of Admin_heartbeat_Params.
type Admin_heartbeat_Results ¶
func NewAdmin_heartbeat_Results ¶
func NewAdmin_heartbeat_Results(s *capnp.Segment) (Admin_heartbeat_Results, error)
func NewRootAdmin_heartbeat_Results ¶
func NewRootAdmin_heartbeat_Results(s *capnp.Segment) (Admin_heartbeat_Results, error)
func ReadRootAdmin_heartbeat_Results ¶
func ReadRootAdmin_heartbeat_Results(msg *capnp.Message) (Admin_heartbeat_Results, error)
func (Admin_heartbeat_Results) DecodeFromPtr ¶
func (Admin_heartbeat_Results) DecodeFromPtr(p capnp.Ptr) Admin_heartbeat_Results
func (Admin_heartbeat_Results) EncodeAsPtr ¶
func (s Admin_heartbeat_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_heartbeat_Results) IsValid ¶
func (s Admin_heartbeat_Results) IsValid() bool
func (Admin_heartbeat_Results) Message ¶
func (s Admin_heartbeat_Results) Message() *capnp.Message
func (Admin_heartbeat_Results) Segment ¶
func (s Admin_heartbeat_Results) Segment() *capnp.Segment
func (Admin_heartbeat_Results) String ¶
func (s Admin_heartbeat_Results) String() string
func (Admin_heartbeat_Results) ToPtr ¶
func (s Admin_heartbeat_Results) ToPtr() capnp.Ptr
type Admin_heartbeat_Results_Future ¶
Admin_heartbeat_Results_Future is a wrapper for a Admin_heartbeat_Results promised by a client call.
func (Admin_heartbeat_Results_Future) Struct ¶
func (f Admin_heartbeat_Results_Future) Struct() (Admin_heartbeat_Results, error)
type Admin_heartbeat_Results_List ¶
type Admin_heartbeat_Results_List = capnp.StructList[Admin_heartbeat_Results]
Admin_heartbeat_Results_List is a list of Admin_heartbeat_Results.
func NewAdmin_heartbeat_Results_List ¶
func NewAdmin_heartbeat_Results_List(s *capnp.Segment, sz int32) (Admin_heartbeat_Results_List, error)
NewAdmin_heartbeat_Results creates a new list of Admin_heartbeat_Results.
type Admin_identities ¶
Admin_identities holds the state for a server call to Admin.identities. See server.Call for documentation.
func (Admin_identities) AllocResults ¶
func (c Admin_identities) AllocResults() (Admin_identities_Results, error)
AllocResults allocates the results struct.
func (Admin_identities) Args ¶
func (c Admin_identities) Args() Admin_identities_Params
Args returns the call's arguments.
type Admin_identities_Params ¶
func NewAdmin_identities_Params ¶
func NewAdmin_identities_Params(s *capnp.Segment) (Admin_identities_Params, error)
func NewRootAdmin_identities_Params ¶
func NewRootAdmin_identities_Params(s *capnp.Segment) (Admin_identities_Params, error)
func ReadRootAdmin_identities_Params ¶
func ReadRootAdmin_identities_Params(msg *capnp.Message) (Admin_identities_Params, error)
func (Admin_identities_Params) DecodeFromPtr ¶
func (Admin_identities_Params) DecodeFromPtr(p capnp.Ptr) Admin_identities_Params
func (Admin_identities_Params) EncodeAsPtr ¶
func (s Admin_identities_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_identities_Params) IsValid ¶
func (s Admin_identities_Params) IsValid() bool
func (Admin_identities_Params) Message ¶
func (s Admin_identities_Params) Message() *capnp.Message
func (Admin_identities_Params) Segment ¶
func (s Admin_identities_Params) Segment() *capnp.Segment
func (Admin_identities_Params) String ¶
func (s Admin_identities_Params) String() string
func (Admin_identities_Params) ToPtr ¶
func (s Admin_identities_Params) ToPtr() capnp.Ptr
type Admin_identities_Params_Future ¶
Admin_identities_Params_Future is a wrapper for a Admin_identities_Params promised by a client call.
func (Admin_identities_Params_Future) Struct ¶
func (f Admin_identities_Params_Future) Struct() (Admin_identities_Params, error)
type Admin_identities_Params_List ¶
type Admin_identities_Params_List = capnp.StructList[Admin_identities_Params]
Admin_identities_Params_List is a list of Admin_identities_Params.
func NewAdmin_identities_Params_List ¶
func NewAdmin_identities_Params_List(s *capnp.Segment, sz int32) (Admin_identities_Params_List, error)
NewAdmin_identities_Params creates a new list of Admin_identities_Params.
type Admin_identities_Results ¶
func NewAdmin_identities_Results ¶
func NewAdmin_identities_Results(s *capnp.Segment) (Admin_identities_Results, error)
func NewRootAdmin_identities_Results ¶
func NewRootAdmin_identities_Results(s *capnp.Segment) (Admin_identities_Results, error)
func ReadRootAdmin_identities_Results ¶
func ReadRootAdmin_identities_Results(msg *capnp.Message) (Admin_identities_Results, error)
func (Admin_identities_Results) DecodeFromPtr ¶
func (Admin_identities_Results) DecodeFromPtr(p capnp.Ptr) Admin_identities_Results
func (Admin_identities_Results) EncodeAsPtr ¶
func (s Admin_identities_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_identities_Results) HasInfos ¶
func (s Admin_identities_Results) HasInfos() bool
func (Admin_identities_Results) Infos ¶
func (s Admin_identities_Results) Infos() (common.IdInformation_List, error)
func (Admin_identities_Results) IsValid ¶
func (s Admin_identities_Results) IsValid() bool
func (Admin_identities_Results) Message ¶
func (s Admin_identities_Results) Message() *capnp.Message
func (Admin_identities_Results) NewInfos ¶
func (s Admin_identities_Results) NewInfos(n int32) (common.IdInformation_List, error)
NewInfos sets the infos field to a newly allocated common.IdInformation_List, preferring placement in s's segment.
func (Admin_identities_Results) Segment ¶
func (s Admin_identities_Results) Segment() *capnp.Segment
func (Admin_identities_Results) SetInfos ¶
func (s Admin_identities_Results) SetInfos(v common.IdInformation_List) error
func (Admin_identities_Results) String ¶
func (s Admin_identities_Results) String() string
func (Admin_identities_Results) ToPtr ¶
func (s Admin_identities_Results) ToPtr() capnp.Ptr
type Admin_identities_Results_Future ¶
Admin_identities_Results_Future is a wrapper for a Admin_identities_Results promised by a client call.
func (Admin_identities_Results_Future) Struct ¶
func (f Admin_identities_Results_Future) Struct() (Admin_identities_Results, error)
type Admin_identities_Results_List ¶
type Admin_identities_Results_List = capnp.StructList[Admin_identities_Results]
Admin_identities_Results_List is a list of Admin_identities_Results.
func NewAdmin_identities_Results_List ¶
func NewAdmin_identities_Results_List(s *capnp.Segment, sz int32) (Admin_identities_Results_List, error)
NewAdmin_identities_Results creates a new list of Admin_identities_Results.
type Admin_setTimeout ¶
Admin_setTimeout holds the state for a server call to Admin.setTimeout. See server.Call for documentation.
func (Admin_setTimeout) AllocResults ¶
func (c Admin_setTimeout) AllocResults() (Admin_setTimeout_Results, error)
AllocResults allocates the results struct.
func (Admin_setTimeout) Args ¶
func (c Admin_setTimeout) Args() Admin_setTimeout_Params
Args returns the call's arguments.
type Admin_setTimeout_Params ¶
func NewAdmin_setTimeout_Params ¶
func NewAdmin_setTimeout_Params(s *capnp.Segment) (Admin_setTimeout_Params, error)
func NewRootAdmin_setTimeout_Params ¶
func NewRootAdmin_setTimeout_Params(s *capnp.Segment) (Admin_setTimeout_Params, error)
func ReadRootAdmin_setTimeout_Params ¶
func ReadRootAdmin_setTimeout_Params(msg *capnp.Message) (Admin_setTimeout_Params, error)
func (Admin_setTimeout_Params) DecodeFromPtr ¶
func (Admin_setTimeout_Params) DecodeFromPtr(p capnp.Ptr) Admin_setTimeout_Params
func (Admin_setTimeout_Params) EncodeAsPtr ¶
func (s Admin_setTimeout_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_setTimeout_Params) IsValid ¶
func (s Admin_setTimeout_Params) IsValid() bool
func (Admin_setTimeout_Params) Message ¶
func (s Admin_setTimeout_Params) Message() *capnp.Message
func (Admin_setTimeout_Params) Seconds ¶
func (s Admin_setTimeout_Params) Seconds() uint64
func (Admin_setTimeout_Params) Segment ¶
func (s Admin_setTimeout_Params) Segment() *capnp.Segment
func (Admin_setTimeout_Params) SetSeconds ¶
func (s Admin_setTimeout_Params) SetSeconds(v uint64)
func (Admin_setTimeout_Params) String ¶
func (s Admin_setTimeout_Params) String() string
func (Admin_setTimeout_Params) ToPtr ¶
func (s Admin_setTimeout_Params) ToPtr() capnp.Ptr
type Admin_setTimeout_Params_Future ¶
Admin_setTimeout_Params_Future is a wrapper for a Admin_setTimeout_Params promised by a client call.
func (Admin_setTimeout_Params_Future) Struct ¶
func (f Admin_setTimeout_Params_Future) Struct() (Admin_setTimeout_Params, error)
type Admin_setTimeout_Params_List ¶
type Admin_setTimeout_Params_List = capnp.StructList[Admin_setTimeout_Params]
Admin_setTimeout_Params_List is a list of Admin_setTimeout_Params.
func NewAdmin_setTimeout_Params_List ¶
func NewAdmin_setTimeout_Params_List(s *capnp.Segment, sz int32) (Admin_setTimeout_Params_List, error)
NewAdmin_setTimeout_Params creates a new list of Admin_setTimeout_Params.
type Admin_setTimeout_Results ¶
func NewAdmin_setTimeout_Results ¶
func NewAdmin_setTimeout_Results(s *capnp.Segment) (Admin_setTimeout_Results, error)
func NewRootAdmin_setTimeout_Results ¶
func NewRootAdmin_setTimeout_Results(s *capnp.Segment) (Admin_setTimeout_Results, error)
func ReadRootAdmin_setTimeout_Results ¶
func ReadRootAdmin_setTimeout_Results(msg *capnp.Message) (Admin_setTimeout_Results, error)
func (Admin_setTimeout_Results) DecodeFromPtr ¶
func (Admin_setTimeout_Results) DecodeFromPtr(p capnp.Ptr) Admin_setTimeout_Results
func (Admin_setTimeout_Results) EncodeAsPtr ¶
func (s Admin_setTimeout_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_setTimeout_Results) IsValid ¶
func (s Admin_setTimeout_Results) IsValid() bool
func (Admin_setTimeout_Results) Message ¶
func (s Admin_setTimeout_Results) Message() *capnp.Message
func (Admin_setTimeout_Results) Segment ¶
func (s Admin_setTimeout_Results) Segment() *capnp.Segment
func (Admin_setTimeout_Results) String ¶
func (s Admin_setTimeout_Results) String() string
func (Admin_setTimeout_Results) ToPtr ¶
func (s Admin_setTimeout_Results) ToPtr() capnp.Ptr
type Admin_setTimeout_Results_Future ¶
Admin_setTimeout_Results_Future is a wrapper for a Admin_setTimeout_Results promised by a client call.
func (Admin_setTimeout_Results_Future) Struct ¶
func (f Admin_setTimeout_Results_Future) Struct() (Admin_setTimeout_Results, error)
type Admin_setTimeout_Results_List ¶
type Admin_setTimeout_Results_List = capnp.StructList[Admin_setTimeout_Results]
Admin_setTimeout_Results_List is a list of Admin_setTimeout_Results.
func NewAdmin_setTimeout_Results_List ¶
func NewAdmin_setTimeout_Results_List(s *capnp.Segment, sz int32) (Admin_setTimeout_Results_List, error)
NewAdmin_setTimeout_Results creates a new list of Admin_setTimeout_Results.
type Admin_stop ¶
Admin_stop holds the state for a server call to Admin.stop. See server.Call for documentation.
func (Admin_stop) AllocResults ¶
func (c Admin_stop) AllocResults() (Admin_stop_Results, error)
AllocResults allocates the results struct.
func (Admin_stop) Args ¶
func (c Admin_stop) Args() Admin_stop_Params
Args returns the call's arguments.
type Admin_stop_Params ¶
func NewAdmin_stop_Params ¶
func NewAdmin_stop_Params(s *capnp.Segment) (Admin_stop_Params, error)
func NewRootAdmin_stop_Params ¶
func NewRootAdmin_stop_Params(s *capnp.Segment) (Admin_stop_Params, error)
func ReadRootAdmin_stop_Params ¶
func ReadRootAdmin_stop_Params(msg *capnp.Message) (Admin_stop_Params, error)
func (Admin_stop_Params) DecodeFromPtr ¶
func (Admin_stop_Params) DecodeFromPtr(p capnp.Ptr) Admin_stop_Params
func (Admin_stop_Params) EncodeAsPtr ¶
func (s Admin_stop_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_stop_Params) IsValid ¶
func (s Admin_stop_Params) IsValid() bool
func (Admin_stop_Params) Message ¶
func (s Admin_stop_Params) Message() *capnp.Message
func (Admin_stop_Params) Segment ¶
func (s Admin_stop_Params) Segment() *capnp.Segment
func (Admin_stop_Params) String ¶
func (s Admin_stop_Params) String() string
func (Admin_stop_Params) ToPtr ¶
func (s Admin_stop_Params) ToPtr() capnp.Ptr
type Admin_stop_Params_Future ¶
Admin_stop_Params_Future is a wrapper for a Admin_stop_Params promised by a client call.
func (Admin_stop_Params_Future) Struct ¶
func (f Admin_stop_Params_Future) Struct() (Admin_stop_Params, error)
type Admin_stop_Params_List ¶
type Admin_stop_Params_List = capnp.StructList[Admin_stop_Params]
Admin_stop_Params_List is a list of Admin_stop_Params.
func NewAdmin_stop_Params_List ¶
func NewAdmin_stop_Params_List(s *capnp.Segment, sz int32) (Admin_stop_Params_List, error)
NewAdmin_stop_Params creates a new list of Admin_stop_Params.
type Admin_stop_Results ¶
func NewAdmin_stop_Results ¶
func NewAdmin_stop_Results(s *capnp.Segment) (Admin_stop_Results, error)
func NewRootAdmin_stop_Results ¶
func NewRootAdmin_stop_Results(s *capnp.Segment) (Admin_stop_Results, error)
func ReadRootAdmin_stop_Results ¶
func ReadRootAdmin_stop_Results(msg *capnp.Message) (Admin_stop_Results, error)
func (Admin_stop_Results) DecodeFromPtr ¶
func (Admin_stop_Results) DecodeFromPtr(p capnp.Ptr) Admin_stop_Results
func (Admin_stop_Results) EncodeAsPtr ¶
func (s Admin_stop_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_stop_Results) IsValid ¶
func (s Admin_stop_Results) IsValid() bool
func (Admin_stop_Results) Message ¶
func (s Admin_stop_Results) Message() *capnp.Message
func (Admin_stop_Results) Segment ¶
func (s Admin_stop_Results) Segment() *capnp.Segment
func (Admin_stop_Results) String ¶
func (s Admin_stop_Results) String() string
func (Admin_stop_Results) ToPtr ¶
func (s Admin_stop_Results) ToPtr() capnp.Ptr
type Admin_stop_Results_Future ¶
Admin_stop_Results_Future is a wrapper for a Admin_stop_Results promised by a client call.
func (Admin_stop_Results_Future) Struct ¶
func (f Admin_stop_Results_Future) Struct() (Admin_stop_Results, error)
type Admin_stop_Results_List ¶
type Admin_stop_Results_List = capnp.StructList[Admin_stop_Results]
Admin_stop_Results_List is a list of Admin_stop_Results.
func NewAdmin_stop_Results_List ¶
func NewAdmin_stop_Results_List(s *capnp.Segment, sz int32) (Admin_stop_Results_List, error)
NewAdmin_stop_Results creates a new list of Admin_stop_Results.
type Admin_updateIdentity ¶
Admin_updateIdentity holds the state for a server call to Admin.updateIdentity. See server.Call for documentation.
func (Admin_updateIdentity) AllocResults ¶
func (c Admin_updateIdentity) AllocResults() (Admin_updateIdentity_Results, error)
AllocResults allocates the results struct.
func (Admin_updateIdentity) Args ¶
func (c Admin_updateIdentity) Args() Admin_updateIdentity_Params
Args returns the call's arguments.
type Admin_updateIdentity_Params ¶
func NewAdmin_updateIdentity_Params ¶
func NewAdmin_updateIdentity_Params(s *capnp.Segment) (Admin_updateIdentity_Params, error)
func NewRootAdmin_updateIdentity_Params ¶
func NewRootAdmin_updateIdentity_Params(s *capnp.Segment) (Admin_updateIdentity_Params, error)
func ReadRootAdmin_updateIdentity_Params ¶
func ReadRootAdmin_updateIdentity_Params(msg *capnp.Message) (Admin_updateIdentity_Params, error)
func (Admin_updateIdentity_Params) DecodeFromPtr ¶
func (Admin_updateIdentity_Params) DecodeFromPtr(p capnp.Ptr) Admin_updateIdentity_Params
func (Admin_updateIdentity_Params) EncodeAsPtr ¶
func (s Admin_updateIdentity_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_updateIdentity_Params) HasNewInfo ¶
func (s Admin_updateIdentity_Params) HasNewInfo() bool
func (Admin_updateIdentity_Params) HasOldId ¶
func (s Admin_updateIdentity_Params) HasOldId() bool
func (Admin_updateIdentity_Params) IsValid ¶
func (s Admin_updateIdentity_Params) IsValid() bool
func (Admin_updateIdentity_Params) Message ¶
func (s Admin_updateIdentity_Params) Message() *capnp.Message
func (Admin_updateIdentity_Params) NewInfo ¶
func (s Admin_updateIdentity_Params) NewInfo() (common.IdInformation, error)
func (Admin_updateIdentity_Params) NewNewInfo ¶
func (s Admin_updateIdentity_Params) NewNewInfo() (common.IdInformation, error)
NewNewInfo sets the newInfo field to a newly allocated common.IdInformation struct, preferring placement in s's segment.
func (Admin_updateIdentity_Params) OldId ¶
func (s Admin_updateIdentity_Params) OldId() (string, error)
func (Admin_updateIdentity_Params) OldIdBytes ¶
func (s Admin_updateIdentity_Params) OldIdBytes() ([]byte, error)
func (Admin_updateIdentity_Params) Segment ¶
func (s Admin_updateIdentity_Params) Segment() *capnp.Segment
func (Admin_updateIdentity_Params) SetNewInfo ¶
func (s Admin_updateIdentity_Params) SetNewInfo(v common.IdInformation) error
func (Admin_updateIdentity_Params) SetOldId ¶
func (s Admin_updateIdentity_Params) SetOldId(v string) error
func (Admin_updateIdentity_Params) String ¶
func (s Admin_updateIdentity_Params) String() string
func (Admin_updateIdentity_Params) ToPtr ¶
func (s Admin_updateIdentity_Params) ToPtr() capnp.Ptr
type Admin_updateIdentity_Params_Future ¶
Admin_updateIdentity_Params_Future is a wrapper for a Admin_updateIdentity_Params promised by a client call.
func (Admin_updateIdentity_Params_Future) NewInfo ¶
func (p Admin_updateIdentity_Params_Future) NewInfo() common.IdInformation_Future
func (Admin_updateIdentity_Params_Future) Struct ¶
func (f Admin_updateIdentity_Params_Future) Struct() (Admin_updateIdentity_Params, error)
type Admin_updateIdentity_Params_List ¶
type Admin_updateIdentity_Params_List = capnp.StructList[Admin_updateIdentity_Params]
Admin_updateIdentity_Params_List is a list of Admin_updateIdentity_Params.
func NewAdmin_updateIdentity_Params_List ¶
func NewAdmin_updateIdentity_Params_List(s *capnp.Segment, sz int32) (Admin_updateIdentity_Params_List, error)
NewAdmin_updateIdentity_Params creates a new list of Admin_updateIdentity_Params.
type Admin_updateIdentity_Results ¶
func NewAdmin_updateIdentity_Results ¶
func NewAdmin_updateIdentity_Results(s *capnp.Segment) (Admin_updateIdentity_Results, error)
func NewRootAdmin_updateIdentity_Results ¶
func NewRootAdmin_updateIdentity_Results(s *capnp.Segment) (Admin_updateIdentity_Results, error)
func ReadRootAdmin_updateIdentity_Results ¶
func ReadRootAdmin_updateIdentity_Results(msg *capnp.Message) (Admin_updateIdentity_Results, error)
func (Admin_updateIdentity_Results) DecodeFromPtr ¶
func (Admin_updateIdentity_Results) DecodeFromPtr(p capnp.Ptr) Admin_updateIdentity_Results
func (Admin_updateIdentity_Results) EncodeAsPtr ¶
func (s Admin_updateIdentity_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Admin_updateIdentity_Results) IsValid ¶
func (s Admin_updateIdentity_Results) IsValid() bool
func (Admin_updateIdentity_Results) Message ¶
func (s Admin_updateIdentity_Results) Message() *capnp.Message
func (Admin_updateIdentity_Results) Segment ¶
func (s Admin_updateIdentity_Results) Segment() *capnp.Segment
func (Admin_updateIdentity_Results) String ¶
func (s Admin_updateIdentity_Results) String() string
func (Admin_updateIdentity_Results) ToPtr ¶
func (s Admin_updateIdentity_Results) ToPtr() capnp.Ptr
type Admin_updateIdentity_Results_Future ¶
Admin_updateIdentity_Results_Future is a wrapper for a Admin_updateIdentity_Results promised by a client call.
func (Admin_updateIdentity_Results_Future) Struct ¶
func (f Admin_updateIdentity_Results_Future) Struct() (Admin_updateIdentity_Results, error)
type Admin_updateIdentity_Results_List ¶
type Admin_updateIdentity_Results_List = capnp.StructList[Admin_updateIdentity_Results]
Admin_updateIdentity_Results_List is a list of Admin_updateIdentity_Results.
func NewAdmin_updateIdentity_Results_List ¶
func NewAdmin_updateIdentity_Results_List(s *capnp.Segment, sz int32) (Admin_updateIdentity_Results_List, error)
NewAdmin_updateIdentity_Results creates a new list of Admin_updateIdentity_Results.
type Factory ¶
func Factory_ServerToClient ¶
func Factory_ServerToClient(s Factory_Server) Factory
Factory_ServerToClient creates a new Client from an implementation of Factory_Server. The caller is responsible for calling Release on the returned Client.
func (Factory) 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 (Factory) Create ¶
func (c Factory) Create(ctx context.Context, params func(Factory_CreateParams) error) (Factory_AccessInfo_Future, capnp.ReleaseFunc)
func (Factory) GetFlowLimiter ¶
func (c Factory) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Factory) Info ¶
func (c Factory) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
func (Factory) 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 (Factory) 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 (Factory) Release ¶
func (c Factory) 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 (Factory) Resolve ¶
Resolve blocks until the capability is fully resolved or the Context expires.
func (Factory) ServiceInterfaceNames ¶
func (c Factory) ServiceInterfaceNames(ctx context.Context, params func(Factory_serviceInterfaceNames_Params) error) (Factory_serviceInterfaceNames_Results_Future, capnp.ReleaseFunc)
func (Factory) SetFlowLimiter ¶
func (c Factory) 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 (Factory) 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 (Factory) WaitStreaming ¶
type Factory_AccessInfo ¶
func NewFactory_AccessInfo ¶
func NewFactory_AccessInfo(s *capnp.Segment) (Factory_AccessInfo, error)
func NewRootFactory_AccessInfo ¶
func NewRootFactory_AccessInfo(s *capnp.Segment) (Factory_AccessInfo, error)
func ReadRootFactory_AccessInfo ¶
func ReadRootFactory_AccessInfo(msg *capnp.Message) (Factory_AccessInfo, error)
func (Factory_AccessInfo) AdminCap ¶
func (s Factory_AccessInfo) AdminCap() capnp.Client
func (Factory_AccessInfo) DecodeFromPtr ¶
func (Factory_AccessInfo) DecodeFromPtr(p capnp.Ptr) Factory_AccessInfo
func (Factory_AccessInfo) EncodeAsPtr ¶
func (s Factory_AccessInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Factory_AccessInfo) Error ¶
func (s Factory_AccessInfo) Error() (string, error)
func (Factory_AccessInfo) ErrorBytes ¶
func (s Factory_AccessInfo) ErrorBytes() ([]byte, error)
func (Factory_AccessInfo) HasAdminCap ¶
func (s Factory_AccessInfo) HasAdminCap() bool
func (Factory_AccessInfo) HasError ¶
func (s Factory_AccessInfo) HasError() bool
func (Factory_AccessInfo) HasServiceCaps ¶
func (s Factory_AccessInfo) HasServiceCaps() bool
func (Factory_AccessInfo) IsValid ¶
func (s Factory_AccessInfo) IsValid() bool
func (Factory_AccessInfo) Message ¶
func (s Factory_AccessInfo) Message() *capnp.Message
func (Factory_AccessInfo) NewServiceCaps ¶
func (s Factory_AccessInfo) NewServiceCaps(n int32) (common.Identifiable_List, error)
NewServiceCaps sets the serviceCaps field to a newly allocated common.Identifiable_List, preferring placement in s's segment.
func (Factory_AccessInfo) Segment ¶
func (s Factory_AccessInfo) Segment() *capnp.Segment
func (Factory_AccessInfo) ServiceCaps ¶
func (s Factory_AccessInfo) ServiceCaps() (common.Identifiable_List, error)
func (Factory_AccessInfo) SetAdminCap ¶
func (s Factory_AccessInfo) SetAdminCap(c capnp.Client) error
func (Factory_AccessInfo) SetError ¶
func (s Factory_AccessInfo) SetError(v string) error
func (Factory_AccessInfo) SetServiceCaps ¶
func (s Factory_AccessInfo) SetServiceCaps(v common.Identifiable_List) error
func (Factory_AccessInfo) String ¶
func (s Factory_AccessInfo) String() string
func (Factory_AccessInfo) ToPtr ¶
func (s Factory_AccessInfo) ToPtr() capnp.Ptr
type Factory_AccessInfo_Future ¶
Factory_AccessInfo_Future is a wrapper for a Factory_AccessInfo promised by a client call.
func (Factory_AccessInfo_Future) AdminCap ¶
func (p Factory_AccessInfo_Future) AdminCap() capnp.Client
func (Factory_AccessInfo_Future) Struct ¶
func (f Factory_AccessInfo_Future) Struct() (Factory_AccessInfo, error)
type Factory_AccessInfo_List ¶
type Factory_AccessInfo_List = capnp.StructList[Factory_AccessInfo]
Factory_AccessInfo_List is a list of Factory_AccessInfo.
func NewFactory_AccessInfo_List ¶
func NewFactory_AccessInfo_List(s *capnp.Segment, sz int32) (Factory_AccessInfo_List, error)
NewFactory_AccessInfo creates a new list of Factory_AccessInfo.
type Factory_CreateParams ¶
func NewFactory_CreateParams ¶
func NewFactory_CreateParams(s *capnp.Segment) (Factory_CreateParams, error)
func NewRootFactory_CreateParams ¶
func NewRootFactory_CreateParams(s *capnp.Segment) (Factory_CreateParams, error)
func ReadRootFactory_CreateParams ¶
func ReadRootFactory_CreateParams(msg *capnp.Message) (Factory_CreateParams, error)
func (Factory_CreateParams) DecodeFromPtr ¶
func (Factory_CreateParams) DecodeFromPtr(p capnp.Ptr) Factory_CreateParams
func (Factory_CreateParams) EncodeAsPtr ¶
func (s Factory_CreateParams) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Factory_CreateParams) HasInterfaceNameToRegistrySR ¶
func (s Factory_CreateParams) HasInterfaceNameToRegistrySR() bool
func (Factory_CreateParams) HasMsgPayload ¶
func (s Factory_CreateParams) HasMsgPayload() bool
func (Factory_CreateParams) InterfaceNameToRegistrySR ¶
func (s Factory_CreateParams) InterfaceNameToRegistrySR() (common.Pair_List, error)
func (Factory_CreateParams) IsValid ¶
func (s Factory_CreateParams) IsValid() bool
func (Factory_CreateParams) Message ¶
func (s Factory_CreateParams) Message() *capnp.Message
func (Factory_CreateParams) MsgPayload ¶
func (s Factory_CreateParams) MsgPayload() (capnp.Ptr, error)
func (Factory_CreateParams) NewInterfaceNameToRegistrySR ¶
func (s Factory_CreateParams) NewInterfaceNameToRegistrySR(n int32) (common.Pair_List, error)
NewInterfaceNameToRegistrySR sets the interfaceNameToRegistrySR field to a newly allocated common.Pair_List, preferring placement in s's segment.
func (Factory_CreateParams) Segment ¶
func (s Factory_CreateParams) Segment() *capnp.Segment
func (Factory_CreateParams) SetInterfaceNameToRegistrySR ¶
func (s Factory_CreateParams) SetInterfaceNameToRegistrySR(v common.Pair_List) error
func (Factory_CreateParams) SetMsgPayload ¶
func (s Factory_CreateParams) SetMsgPayload(v capnp.Ptr) error
func (Factory_CreateParams) SetTimeoutSeconds ¶
func (s Factory_CreateParams) SetTimeoutSeconds(v uint64)
func (Factory_CreateParams) String ¶
func (s Factory_CreateParams) String() string
func (Factory_CreateParams) TimeoutSeconds ¶
func (s Factory_CreateParams) TimeoutSeconds() uint64
func (Factory_CreateParams) ToPtr ¶
func (s Factory_CreateParams) ToPtr() capnp.Ptr
type Factory_CreateParams_Future ¶
Factory_CreateParams_Future is a wrapper for a Factory_CreateParams promised by a client call.
func (Factory_CreateParams_Future) MsgPayload ¶
func (p Factory_CreateParams_Future) MsgPayload() *capnp.Future
func (Factory_CreateParams_Future) Struct ¶
func (f Factory_CreateParams_Future) Struct() (Factory_CreateParams, error)
type Factory_CreateParams_List ¶
type Factory_CreateParams_List = capnp.StructList[Factory_CreateParams]
Factory_CreateParams_List is a list of Factory_CreateParams.
func NewFactory_CreateParams_List ¶
func NewFactory_CreateParams_List(s *capnp.Segment, sz int32) (Factory_CreateParams_List, error)
NewFactory_CreateParams creates a new list of Factory_CreateParams.
type Factory_List ¶
Factory_List is a list of Factory.
func NewFactory_List ¶
func NewFactory_List(s *capnp.Segment, sz int32) (Factory_List, error)
NewFactory_List creates a new list of Factory.
type Factory_Server ¶
type Factory_Server interface { Create(context.Context, Factory_create) error ServiceInterfaceNames(context.Context, Factory_serviceInterfaceNames) error Info(context.Context, common.Identifiable_info) error }
A Factory_Server is a Factory with a local implementation.
type Factory_create ¶
Factory_create holds the state for a server call to Factory.create. See server.Call for documentation.
func (Factory_create) AllocResults ¶
func (c Factory_create) AllocResults() (Factory_AccessInfo, error)
AllocResults allocates the results struct.
func (Factory_create) Args ¶
func (c Factory_create) Args() Factory_CreateParams
Args returns the call's arguments.
type Factory_serviceInterfaceNames ¶
Factory_serviceInterfaceNames holds the state for a server call to Factory.serviceInterfaceNames. See server.Call for documentation.
func (Factory_serviceInterfaceNames) AllocResults ¶
func (c Factory_serviceInterfaceNames) AllocResults() (Factory_serviceInterfaceNames_Results, error)
AllocResults allocates the results struct.
func (Factory_serviceInterfaceNames) Args ¶
func (c Factory_serviceInterfaceNames) Args() Factory_serviceInterfaceNames_Params
Args returns the call's arguments.
type Factory_serviceInterfaceNames_Params ¶
func NewFactory_serviceInterfaceNames_Params ¶
func NewFactory_serviceInterfaceNames_Params(s *capnp.Segment) (Factory_serviceInterfaceNames_Params, error)
func NewRootFactory_serviceInterfaceNames_Params ¶
func NewRootFactory_serviceInterfaceNames_Params(s *capnp.Segment) (Factory_serviceInterfaceNames_Params, error)
func ReadRootFactory_serviceInterfaceNames_Params ¶
func ReadRootFactory_serviceInterfaceNames_Params(msg *capnp.Message) (Factory_serviceInterfaceNames_Params, error)
func (Factory_serviceInterfaceNames_Params) DecodeFromPtr ¶
func (Factory_serviceInterfaceNames_Params) DecodeFromPtr(p capnp.Ptr) Factory_serviceInterfaceNames_Params
func (Factory_serviceInterfaceNames_Params) EncodeAsPtr ¶
func (s Factory_serviceInterfaceNames_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Factory_serviceInterfaceNames_Params) IsValid ¶
func (s Factory_serviceInterfaceNames_Params) IsValid() bool
func (Factory_serviceInterfaceNames_Params) Message ¶
func (s Factory_serviceInterfaceNames_Params) Message() *capnp.Message
func (Factory_serviceInterfaceNames_Params) Segment ¶
func (s Factory_serviceInterfaceNames_Params) Segment() *capnp.Segment
func (Factory_serviceInterfaceNames_Params) String ¶
func (s Factory_serviceInterfaceNames_Params) String() string
func (Factory_serviceInterfaceNames_Params) ToPtr ¶
func (s Factory_serviceInterfaceNames_Params) ToPtr() capnp.Ptr
type Factory_serviceInterfaceNames_Params_Future ¶
Factory_serviceInterfaceNames_Params_Future is a wrapper for a Factory_serviceInterfaceNames_Params promised by a client call.
func (Factory_serviceInterfaceNames_Params_Future) Struct ¶
func (f Factory_serviceInterfaceNames_Params_Future) Struct() (Factory_serviceInterfaceNames_Params, error)
type Factory_serviceInterfaceNames_Params_List ¶
type Factory_serviceInterfaceNames_Params_List = capnp.StructList[Factory_serviceInterfaceNames_Params]
Factory_serviceInterfaceNames_Params_List is a list of Factory_serviceInterfaceNames_Params.
func NewFactory_serviceInterfaceNames_Params_List ¶
func NewFactory_serviceInterfaceNames_Params_List(s *capnp.Segment, sz int32) (Factory_serviceInterfaceNames_Params_List, error)
NewFactory_serviceInterfaceNames_Params creates a new list of Factory_serviceInterfaceNames_Params.
type Factory_serviceInterfaceNames_Results ¶
func NewFactory_serviceInterfaceNames_Results ¶
func NewFactory_serviceInterfaceNames_Results(s *capnp.Segment) (Factory_serviceInterfaceNames_Results, error)
func NewRootFactory_serviceInterfaceNames_Results ¶
func NewRootFactory_serviceInterfaceNames_Results(s *capnp.Segment) (Factory_serviceInterfaceNames_Results, error)
func ReadRootFactory_serviceInterfaceNames_Results ¶
func ReadRootFactory_serviceInterfaceNames_Results(msg *capnp.Message) (Factory_serviceInterfaceNames_Results, error)
func (Factory_serviceInterfaceNames_Results) DecodeFromPtr ¶
func (Factory_serviceInterfaceNames_Results) DecodeFromPtr(p capnp.Ptr) Factory_serviceInterfaceNames_Results
func (Factory_serviceInterfaceNames_Results) EncodeAsPtr ¶
func (s Factory_serviceInterfaceNames_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Factory_serviceInterfaceNames_Results) HasNames ¶
func (s Factory_serviceInterfaceNames_Results) HasNames() bool
func (Factory_serviceInterfaceNames_Results) IsValid ¶
func (s Factory_serviceInterfaceNames_Results) IsValid() bool
func (Factory_serviceInterfaceNames_Results) Message ¶
func (s Factory_serviceInterfaceNames_Results) Message() *capnp.Message
func (Factory_serviceInterfaceNames_Results) Names ¶
func (s Factory_serviceInterfaceNames_Results) Names() (capnp.TextList, error)
func (Factory_serviceInterfaceNames_Results) NewNames ¶
func (s Factory_serviceInterfaceNames_Results) NewNames(n int32) (capnp.TextList, error)
NewNames sets the names field to a newly allocated capnp.TextList, preferring placement in s's segment.
func (Factory_serviceInterfaceNames_Results) Segment ¶
func (s Factory_serviceInterfaceNames_Results) Segment() *capnp.Segment
func (Factory_serviceInterfaceNames_Results) SetNames ¶
func (s Factory_serviceInterfaceNames_Results) SetNames(v capnp.TextList) error
func (Factory_serviceInterfaceNames_Results) String ¶
func (s Factory_serviceInterfaceNames_Results) String() string
func (Factory_serviceInterfaceNames_Results) ToPtr ¶
func (s Factory_serviceInterfaceNames_Results) ToPtr() capnp.Ptr
type Factory_serviceInterfaceNames_Results_Future ¶
Factory_serviceInterfaceNames_Results_Future is a wrapper for a Factory_serviceInterfaceNames_Results promised by a client call.
func (Factory_serviceInterfaceNames_Results_Future) Struct ¶
func (f Factory_serviceInterfaceNames_Results_Future) Struct() (Factory_serviceInterfaceNames_Results, error)
type Factory_serviceInterfaceNames_Results_List ¶
type Factory_serviceInterfaceNames_Results_List = capnp.StructList[Factory_serviceInterfaceNames_Results]
Factory_serviceInterfaceNames_Results_List is a list of Factory_serviceInterfaceNames_Results.
func NewFactory_serviceInterfaceNames_Results_List ¶
func NewFactory_serviceInterfaceNames_Results_List(s *capnp.Segment, sz int32) (Factory_serviceInterfaceNames_Results_List, error)
NewFactory_serviceInterfaceNames_Results creates a new list of Factory_serviceInterfaceNames_Results.
type SimpleFactory ¶
func SimpleFactory_ServerToClient ¶
func SimpleFactory_ServerToClient(s SimpleFactory_Server) SimpleFactory
SimpleFactory_ServerToClient creates a new Client from an implementation of SimpleFactory_Server. The caller is responsible for calling Release on the returned Client.
func (SimpleFactory) AddRef ¶
func (c SimpleFactory) AddRef() SimpleFactory
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 (SimpleFactory) Create ¶
func (c SimpleFactory) Create(ctx context.Context, params func(SimpleFactory_create_Params) error) (SimpleFactory_create_Results_Future, capnp.ReleaseFunc)
func (SimpleFactory) DecodeFromPtr ¶
func (SimpleFactory) DecodeFromPtr(p capnp.Ptr) SimpleFactory
func (SimpleFactory) EncodeAsPtr ¶
func (c SimpleFactory) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (SimpleFactory) GetFlowLimiter ¶
func (c SimpleFactory) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (SimpleFactory) Info ¶
func (c SimpleFactory) Info(ctx context.Context, params func(common.Identifiable_info_Params) error) (common.IdInformation_Future, capnp.ReleaseFunc)
func (SimpleFactory) IsSame ¶
func (c SimpleFactory) IsSame(other SimpleFactory) bool
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 (SimpleFactory) IsValid ¶
func (c SimpleFactory) IsValid() bool
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 (SimpleFactory) Release ¶
func (c SimpleFactory) 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 (SimpleFactory) Resolve ¶
func (c SimpleFactory) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (SimpleFactory) SetFlowLimiter ¶
func (c SimpleFactory) 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 (SimpleFactory) String ¶
func (c SimpleFactory) String() 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 (SimpleFactory) WaitStreaming ¶
func (c SimpleFactory) WaitStreaming() error
type SimpleFactory_List ¶
type SimpleFactory_List = capnp.CapList[SimpleFactory]
SimpleFactory_List is a list of SimpleFactory.
func NewSimpleFactory_List ¶
func NewSimpleFactory_List(s *capnp.Segment, sz int32) (SimpleFactory_List, error)
NewSimpleFactory_List creates a new list of SimpleFactory.
type SimpleFactory_Server ¶
type SimpleFactory_Server interface { Create(context.Context, SimpleFactory_create) error Info(context.Context, common.Identifiable_info) error }
A SimpleFactory_Server is a SimpleFactory with a local implementation.
type SimpleFactory_create ¶
SimpleFactory_create holds the state for a server call to SimpleFactory.create. See server.Call for documentation.
func (SimpleFactory_create) AllocResults ¶
func (c SimpleFactory_create) AllocResults() (SimpleFactory_create_Results, error)
AllocResults allocates the results struct.
func (SimpleFactory_create) Args ¶
func (c SimpleFactory_create) Args() SimpleFactory_create_Params
Args returns the call's arguments.
type SimpleFactory_create_Params ¶
func NewRootSimpleFactory_create_Params ¶
func NewRootSimpleFactory_create_Params(s *capnp.Segment) (SimpleFactory_create_Params, error)
func NewSimpleFactory_create_Params ¶
func NewSimpleFactory_create_Params(s *capnp.Segment) (SimpleFactory_create_Params, error)
func ReadRootSimpleFactory_create_Params ¶
func ReadRootSimpleFactory_create_Params(msg *capnp.Message) (SimpleFactory_create_Params, error)
func (SimpleFactory_create_Params) DecodeFromPtr ¶
func (SimpleFactory_create_Params) DecodeFromPtr(p capnp.Ptr) SimpleFactory_create_Params
func (SimpleFactory_create_Params) EncodeAsPtr ¶
func (s SimpleFactory_create_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (SimpleFactory_create_Params) IsValid ¶
func (s SimpleFactory_create_Params) IsValid() bool
func (SimpleFactory_create_Params) Message ¶
func (s SimpleFactory_create_Params) Message() *capnp.Message
func (SimpleFactory_create_Params) Segment ¶
func (s SimpleFactory_create_Params) Segment() *capnp.Segment
func (SimpleFactory_create_Params) String ¶
func (s SimpleFactory_create_Params) String() string
func (SimpleFactory_create_Params) ToPtr ¶
func (s SimpleFactory_create_Params) ToPtr() capnp.Ptr
type SimpleFactory_create_Params_Future ¶
SimpleFactory_create_Params_Future is a wrapper for a SimpleFactory_create_Params promised by a client call.
func (SimpleFactory_create_Params_Future) Struct ¶
func (f SimpleFactory_create_Params_Future) Struct() (SimpleFactory_create_Params, error)
type SimpleFactory_create_Params_List ¶
type SimpleFactory_create_Params_List = capnp.StructList[SimpleFactory_create_Params]
SimpleFactory_create_Params_List is a list of SimpleFactory_create_Params.
func NewSimpleFactory_create_Params_List ¶
func NewSimpleFactory_create_Params_List(s *capnp.Segment, sz int32) (SimpleFactory_create_Params_List, error)
NewSimpleFactory_create_Params creates a new list of SimpleFactory_create_Params.
type SimpleFactory_create_Results ¶
func NewRootSimpleFactory_create_Results ¶
func NewRootSimpleFactory_create_Results(s *capnp.Segment) (SimpleFactory_create_Results, error)
func NewSimpleFactory_create_Results ¶
func NewSimpleFactory_create_Results(s *capnp.Segment) (SimpleFactory_create_Results, error)
func ReadRootSimpleFactory_create_Results ¶
func ReadRootSimpleFactory_create_Results(msg *capnp.Message) (SimpleFactory_create_Results, error)
func (SimpleFactory_create_Results) Caps ¶
func (s SimpleFactory_create_Results) Caps() (common.Identifiable_List, error)
func (SimpleFactory_create_Results) DecodeFromPtr ¶
func (SimpleFactory_create_Results) DecodeFromPtr(p capnp.Ptr) SimpleFactory_create_Results
func (SimpleFactory_create_Results) EncodeAsPtr ¶
func (s SimpleFactory_create_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (SimpleFactory_create_Results) HasCaps ¶
func (s SimpleFactory_create_Results) HasCaps() bool
func (SimpleFactory_create_Results) IsValid ¶
func (s SimpleFactory_create_Results) IsValid() bool
func (SimpleFactory_create_Results) Message ¶
func (s SimpleFactory_create_Results) Message() *capnp.Message
func (SimpleFactory_create_Results) NewCaps ¶
func (s SimpleFactory_create_Results) NewCaps(n int32) (common.Identifiable_List, error)
NewCaps sets the caps field to a newly allocated common.Identifiable_List, preferring placement in s's segment.
func (SimpleFactory_create_Results) Segment ¶
func (s SimpleFactory_create_Results) Segment() *capnp.Segment
func (SimpleFactory_create_Results) SetCaps ¶
func (s SimpleFactory_create_Results) SetCaps(v common.Identifiable_List) error
func (SimpleFactory_create_Results) String ¶
func (s SimpleFactory_create_Results) String() string
func (SimpleFactory_create_Results) ToPtr ¶
func (s SimpleFactory_create_Results) ToPtr() capnp.Ptr
type SimpleFactory_create_Results_Future ¶
SimpleFactory_create_Results_Future is a wrapper for a SimpleFactory_create_Results promised by a client call.
func (SimpleFactory_create_Results_Future) Struct ¶
func (f SimpleFactory_create_Results_Future) Struct() (SimpleFactory_create_Results, error)
type SimpleFactory_create_Results_List ¶
type SimpleFactory_create_Results_List = capnp.StructList[SimpleFactory_create_Results]
SimpleFactory_create_Results_List is a list of SimpleFactory_create_Results.
func NewSimpleFactory_create_Results_List ¶
func NewSimpleFactory_create_Results_List(s *capnp.Segment, sz int32) (SimpleFactory_create_Results_List, error)
NewSimpleFactory_create_Results creates a new list of SimpleFactory_create_Results.
type Stopable ¶
func Stopable_ServerToClient ¶
func Stopable_ServerToClient(s Stopable_Server) Stopable
Stopable_ServerToClient creates a new Client from an implementation of Stopable_Server. The caller is responsible for calling Release on the returned Client.
func (Stopable) 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 (Stopable) GetFlowLimiter ¶
func (c Stopable) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Stopable) 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 (Stopable) 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 (Stopable) Release ¶
func (c Stopable) 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 (Stopable) Resolve ¶
Resolve blocks until the capability is fully resolved or the Context expires.
func (Stopable) SetFlowLimiter ¶
func (c Stopable) 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 (Stopable) Stop ¶
func (c Stopable) Stop(ctx context.Context, params func(Stopable_stop_Params) error) (Stopable_stop_Results_Future, capnp.ReleaseFunc)
func (Stopable) 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 (Stopable) WaitStreaming ¶
type Stopable_List ¶
Stopable_List is a list of Stopable.
func NewStopable_List ¶
func NewStopable_List(s *capnp.Segment, sz int32) (Stopable_List, error)
NewStopable_List creates a new list of Stopable.
type Stopable_Server ¶
type Stopable_Server interface {
Stop(context.Context, Stopable_stop) error
}
A Stopable_Server is a Stopable with a local implementation.
type Stopable_stop ¶
Stopable_stop holds the state for a server call to Stopable.stop. See server.Call for documentation.
func (Stopable_stop) AllocResults ¶
func (c Stopable_stop) AllocResults() (Stopable_stop_Results, error)
AllocResults allocates the results struct.
func (Stopable_stop) Args ¶
func (c Stopable_stop) Args() Stopable_stop_Params
Args returns the call's arguments.
type Stopable_stop_Params ¶
func NewRootStopable_stop_Params ¶
func NewRootStopable_stop_Params(s *capnp.Segment) (Stopable_stop_Params, error)
func NewStopable_stop_Params ¶
func NewStopable_stop_Params(s *capnp.Segment) (Stopable_stop_Params, error)
func ReadRootStopable_stop_Params ¶
func ReadRootStopable_stop_Params(msg *capnp.Message) (Stopable_stop_Params, error)
func (Stopable_stop_Params) DecodeFromPtr ¶
func (Stopable_stop_Params) DecodeFromPtr(p capnp.Ptr) Stopable_stop_Params
func (Stopable_stop_Params) EncodeAsPtr ¶
func (s Stopable_stop_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Stopable_stop_Params) IsValid ¶
func (s Stopable_stop_Params) IsValid() bool
func (Stopable_stop_Params) Message ¶
func (s Stopable_stop_Params) Message() *capnp.Message
func (Stopable_stop_Params) Segment ¶
func (s Stopable_stop_Params) Segment() *capnp.Segment
func (Stopable_stop_Params) String ¶
func (s Stopable_stop_Params) String() string
func (Stopable_stop_Params) ToPtr ¶
func (s Stopable_stop_Params) ToPtr() capnp.Ptr
type Stopable_stop_Params_Future ¶
Stopable_stop_Params_Future is a wrapper for a Stopable_stop_Params promised by a client call.
func (Stopable_stop_Params_Future) Struct ¶
func (f Stopable_stop_Params_Future) Struct() (Stopable_stop_Params, error)
type Stopable_stop_Params_List ¶
type Stopable_stop_Params_List = capnp.StructList[Stopable_stop_Params]
Stopable_stop_Params_List is a list of Stopable_stop_Params.
func NewStopable_stop_Params_List ¶
func NewStopable_stop_Params_List(s *capnp.Segment, sz int32) (Stopable_stop_Params_List, error)
NewStopable_stop_Params creates a new list of Stopable_stop_Params.
type Stopable_stop_Results ¶
func NewRootStopable_stop_Results ¶
func NewRootStopable_stop_Results(s *capnp.Segment) (Stopable_stop_Results, error)
func NewStopable_stop_Results ¶
func NewStopable_stop_Results(s *capnp.Segment) (Stopable_stop_Results, error)
func ReadRootStopable_stop_Results ¶
func ReadRootStopable_stop_Results(msg *capnp.Message) (Stopable_stop_Results, error)
func (Stopable_stop_Results) DecodeFromPtr ¶
func (Stopable_stop_Results) DecodeFromPtr(p capnp.Ptr) Stopable_stop_Results
func (Stopable_stop_Results) EncodeAsPtr ¶
func (s Stopable_stop_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Stopable_stop_Results) IsValid ¶
func (s Stopable_stop_Results) IsValid() bool
func (Stopable_stop_Results) Message ¶
func (s Stopable_stop_Results) Message() *capnp.Message
func (Stopable_stop_Results) Segment ¶
func (s Stopable_stop_Results) Segment() *capnp.Segment
func (Stopable_stop_Results) String ¶
func (s Stopable_stop_Results) String() string
func (Stopable_stop_Results) ToPtr ¶
func (s Stopable_stop_Results) ToPtr() capnp.Ptr
type Stopable_stop_Results_Future ¶
Stopable_stop_Results_Future is a wrapper for a Stopable_stop_Results promised by a client call.
func (Stopable_stop_Results_Future) Struct ¶
func (f Stopable_stop_Results_Future) Struct() (Stopable_stop_Results, error)
type Stopable_stop_Results_List ¶
type Stopable_stop_Results_List = capnp.StructList[Stopable_stop_Results]
Stopable_stop_Results_List is a list of Stopable_stop_Results.
func NewStopable_stop_Results_List ¶
func NewStopable_stop_Results_List(s *capnp.Segment, sz int32) (Stopable_stop_Results_List, error)
NewStopable_stop_Results creates a new list of Stopable_stop_Results.