Documentation ¶
Index ¶
- Constants
- func RegisterSchema(reg *schemas.Registry)
- func Service_Methods(methods []server.Method, s Service_Server) []server.Method
- func Service_NewServer(s Service_Server) *server.Server
- type Service
- func (c Service) AddRef() Service
- func (Service) DecodeFromPtr(p capnp.Ptr) Service
- func (c Service) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c Service) GetFlowLimiter() fc.FlowLimiter
- func (c Service) IsSame(other Service) bool
- func (c Service) IsValid() bool
- func (c Service) NextConfig(ctx context.Context, params func(Service_nextConfig_Params) error) (Service_nextConfig_Results_Future, capnp.ReleaseFunc)
- func (c Service) Release()
- func (c Service) Resolve(ctx context.Context) error
- func (c Service) SetFlowLimiter(lim fc.FlowLimiter)
- func (c Service) String() string
- func (c Service) WaitStreaming() error
- type Service_List
- type Service_Server
- type Service_nextConfig
- type Service_nextConfig_Params
- func (Service_nextConfig_Params) DecodeFromPtr(p capnp.Ptr) Service_nextConfig_Params
- func (s Service_nextConfig_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Service_nextConfig_Params) IsValid() bool
- func (s Service_nextConfig_Params) Message() *capnp.Message
- func (s Service_nextConfig_Params) Segment() *capnp.Segment
- func (s Service_nextConfig_Params) String() string
- func (s Service_nextConfig_Params) ToPtr() capnp.Ptr
- type Service_nextConfig_Params_Future
- type Service_nextConfig_Params_List
- type Service_nextConfig_Results
- func (s Service_nextConfig_Results) Config() (capnp.Ptr, error)
- func (Service_nextConfig_Results) DecodeFromPtr(p capnp.Ptr) Service_nextConfig_Results
- func (s Service_nextConfig_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Service_nextConfig_Results) HasConfig() bool
- func (s Service_nextConfig_Results) IsValid() bool
- func (s Service_nextConfig_Results) Message() *capnp.Message
- func (s Service_nextConfig_Results) NoFurtherConfigs() bool
- func (s Service_nextConfig_Results) Segment() *capnp.Segment
- func (s Service_nextConfig_Results) SetConfig(v capnp.Ptr) error
- func (s Service_nextConfig_Results) SetNoFurtherConfigs(v bool)
- func (s Service_nextConfig_Results) String() string
- func (s Service_nextConfig_Results) ToPtr() capnp.Ptr
- type Service_nextConfig_Results_Future
- type Service_nextConfig_Results_List
Constants ¶
const Service_TypeID = 0x860d660620aefcda
Service_TypeID is the unique identifier for the type Service.
const Service_nextConfig_Params_TypeID = 0x8a931778446b73d8
Service_nextConfig_Params_TypeID is the unique identifier for the type Service_nextConfig_Params.
const Service_nextConfig_Results_TypeID = 0xb0cc157dd72bb20b
Service_nextConfig_Results_TypeID is the unique identifier for the type Service_nextConfig_Results.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
func Service_Methods ¶
func Service_Methods(methods []server.Method, s Service_Server) []server.Method
Service_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func Service_NewServer ¶
func Service_NewServer(s Service_Server) *server.Server
Service_NewServer creates a new Server from an implementation of Service_Server.
Types ¶
type Service ¶
func Service_ServerToClient ¶
func Service_ServerToClient(s Service_Server) Service
Service_ServerToClient creates a new Client from an implementation of Service_Server. The caller is responsible for calling Release on the returned Client.
func (Service) 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 (Service) GetFlowLimiter ¶
func (c Service) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (Service) 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 (Service) 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 (Service) NextConfig ¶
func (c Service) NextConfig(ctx context.Context, params func(Service_nextConfig_Params) error) (Service_nextConfig_Results_Future, capnp.ReleaseFunc)
func (Service) Release ¶
func (c Service) 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 (Service) Resolve ¶
Resolve blocks until the capability is fully resolved or the Context expires.
func (Service) SetFlowLimiter ¶
func (c Service) 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 (Service) 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 (Service) WaitStreaming ¶
type Service_List ¶
Service_List is a list of Service.
func NewService_List ¶
func NewService_List(s *capnp.Segment, sz int32) (Service_List, error)
NewService_List creates a new list of Service.
type Service_Server ¶
type Service_Server interface {
NextConfig(context.Context, Service_nextConfig) error
}
A Service_Server is a Service with a local implementation.
type Service_nextConfig ¶
Service_nextConfig holds the state for a server call to Service.nextConfig. See server.Call for documentation.
func (Service_nextConfig) AllocResults ¶
func (c Service_nextConfig) AllocResults() (Service_nextConfig_Results, error)
AllocResults allocates the results struct.
func (Service_nextConfig) Args ¶
func (c Service_nextConfig) Args() Service_nextConfig_Params
Args returns the call's arguments.
type Service_nextConfig_Params ¶
func NewRootService_nextConfig_Params ¶
func NewRootService_nextConfig_Params(s *capnp.Segment) (Service_nextConfig_Params, error)
func NewService_nextConfig_Params ¶
func NewService_nextConfig_Params(s *capnp.Segment) (Service_nextConfig_Params, error)
func ReadRootService_nextConfig_Params ¶
func ReadRootService_nextConfig_Params(msg *capnp.Message) (Service_nextConfig_Params, error)
func (Service_nextConfig_Params) DecodeFromPtr ¶
func (Service_nextConfig_Params) DecodeFromPtr(p capnp.Ptr) Service_nextConfig_Params
func (Service_nextConfig_Params) EncodeAsPtr ¶
func (s Service_nextConfig_Params) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Service_nextConfig_Params) IsValid ¶
func (s Service_nextConfig_Params) IsValid() bool
func (Service_nextConfig_Params) Message ¶
func (s Service_nextConfig_Params) Message() *capnp.Message
func (Service_nextConfig_Params) Segment ¶
func (s Service_nextConfig_Params) Segment() *capnp.Segment
func (Service_nextConfig_Params) String ¶
func (s Service_nextConfig_Params) String() string
func (Service_nextConfig_Params) ToPtr ¶
func (s Service_nextConfig_Params) ToPtr() capnp.Ptr
type Service_nextConfig_Params_Future ¶
Service_nextConfig_Params_Future is a wrapper for a Service_nextConfig_Params promised by a client call.
func (Service_nextConfig_Params_Future) Struct ¶
func (f Service_nextConfig_Params_Future) Struct() (Service_nextConfig_Params, error)
type Service_nextConfig_Params_List ¶
type Service_nextConfig_Params_List = capnp.StructList[Service_nextConfig_Params]
Service_nextConfig_Params_List is a list of Service_nextConfig_Params.
func NewService_nextConfig_Params_List ¶
func NewService_nextConfig_Params_List(s *capnp.Segment, sz int32) (Service_nextConfig_Params_List, error)
NewService_nextConfig_Params creates a new list of Service_nextConfig_Params.
type Service_nextConfig_Results ¶
func NewRootService_nextConfig_Results ¶
func NewRootService_nextConfig_Results(s *capnp.Segment) (Service_nextConfig_Results, error)
func NewService_nextConfig_Results ¶
func NewService_nextConfig_Results(s *capnp.Segment) (Service_nextConfig_Results, error)
func ReadRootService_nextConfig_Results ¶
func ReadRootService_nextConfig_Results(msg *capnp.Message) (Service_nextConfig_Results, error)
func (Service_nextConfig_Results) Config ¶
func (s Service_nextConfig_Results) Config() (capnp.Ptr, error)
func (Service_nextConfig_Results) DecodeFromPtr ¶
func (Service_nextConfig_Results) DecodeFromPtr(p capnp.Ptr) Service_nextConfig_Results
func (Service_nextConfig_Results) EncodeAsPtr ¶
func (s Service_nextConfig_Results) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (Service_nextConfig_Results) HasConfig ¶
func (s Service_nextConfig_Results) HasConfig() bool
func (Service_nextConfig_Results) IsValid ¶
func (s Service_nextConfig_Results) IsValid() bool
func (Service_nextConfig_Results) Message ¶
func (s Service_nextConfig_Results) Message() *capnp.Message
func (Service_nextConfig_Results) NoFurtherConfigs ¶
func (s Service_nextConfig_Results) NoFurtherConfigs() bool
func (Service_nextConfig_Results) Segment ¶
func (s Service_nextConfig_Results) Segment() *capnp.Segment
func (Service_nextConfig_Results) SetConfig ¶
func (s Service_nextConfig_Results) SetConfig(v capnp.Ptr) error
func (Service_nextConfig_Results) SetNoFurtherConfigs ¶
func (s Service_nextConfig_Results) SetNoFurtherConfigs(v bool)
func (Service_nextConfig_Results) String ¶
func (s Service_nextConfig_Results) String() string
func (Service_nextConfig_Results) ToPtr ¶
func (s Service_nextConfig_Results) ToPtr() capnp.Ptr
type Service_nextConfig_Results_Future ¶
Service_nextConfig_Results_Future is a wrapper for a Service_nextConfig_Results promised by a client call.
func (Service_nextConfig_Results_Future) Config ¶
func (p Service_nextConfig_Results_Future) Config() *capnp.Future
func (Service_nextConfig_Results_Future) Struct ¶
func (f Service_nextConfig_Results_Future) Struct() (Service_nextConfig_Results, error)
type Service_nextConfig_Results_List ¶
type Service_nextConfig_Results_List = capnp.StructList[Service_nextConfig_Results]
Service_nextConfig_Results_List is a list of Service_nextConfig_Results.
func NewService_nextConfig_Results_List ¶
func NewService_nextConfig_Results_List(s *capnp.Segment, sz int32) (Service_nextConfig_Results_List, error)
NewService_nextConfig_Results creates a new list of Service_nextConfig_Results.