Documentation
¶
Index ¶
- Constants
- func PersistentUiView_Methods(methods []server.Method, s PersistentUiView_Server) []server.Method
- func PersistentUiView_NewServer(s PersistentUiView_Server) *server.Server
- type PersistentUiView
- func (c PersistentUiView) AddRef() PersistentUiView
- func (c PersistentUiView) AddRequirements(ctx context.Context, ...) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
- func (PersistentUiView) DecodeFromPtr(p capnp.Ptr) PersistentUiView
- func (c PersistentUiView) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c PersistentUiView) GetFlowLimiter() fc.FlowLimiter
- func (c PersistentUiView) GetViewInfo(ctx context.Context, params func(grain.UiView_getViewInfo_Params) error) (grain.UiView_ViewInfo_Future, capnp.ReleaseFunc)
- func (c PersistentUiView) IsSame(other PersistentUiView) bool
- func (c PersistentUiView) IsValid() bool
- func (c PersistentUiView) NewOfferSession(ctx context.Context, params func(grain.UiView_newOfferSession_Params) error) (grain.UiView_newOfferSession_Results_Future, capnp.ReleaseFunc)
- func (c PersistentUiView) NewRequestSession(ctx context.Context, params func(grain.UiView_newRequestSession_Params) error) (grain.UiView_newRequestSession_Results_Future, capnp.ReleaseFunc)
- func (c PersistentUiView) NewSession(ctx context.Context, params func(grain.UiView_newSession_Params) error) (grain.UiView_newSession_Results_Future, capnp.ReleaseFunc)
- func (c PersistentUiView) Release()
- func (c PersistentUiView) Resolve(ctx context.Context) error
- func (c PersistentUiView) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
- func (c PersistentUiView) SetFlowLimiter(lim fc.FlowLimiter)
- func (c PersistentUiView) String() string
- type PersistentUiView_List
- type PersistentUiView_Server
Constants ¶
const PersistentUiView_TypeID = 0x826f7187e23c37c9
PersistentUiView_TypeID is the unique identifier for the type PersistentUiView.
Variables ¶
This section is empty.
Functions ¶
func PersistentUiView_Methods ¶
func PersistentUiView_Methods(methods []server.Method, s PersistentUiView_Server) []server.Method
PersistentUiView_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func PersistentUiView_NewServer ¶
func PersistentUiView_NewServer(s PersistentUiView_Server) *server.Server
PersistentUiView_NewServer creates a new Server from an implementation of PersistentUiView_Server.
Types ¶
type PersistentUiView ¶
func PersistentUiView_ServerToClient ¶
func PersistentUiView_ServerToClient(s PersistentUiView_Server) PersistentUiView
PersistentUiView_ServerToClient creates a new Client from an implementation of PersistentUiView_Server. The caller is responsible for calling Release on the returned Client.
func (PersistentUiView) AddRef ¶
func (c PersistentUiView) AddRef() PersistentUiView
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 (PersistentUiView) AddRequirements ¶
func (c PersistentUiView) AddRequirements(ctx context.Context, params func(supervisor.SystemPersistent_addRequirements_Params) error) (supervisor.SystemPersistent_addRequirements_Results_Future, capnp.ReleaseFunc)
func (PersistentUiView) DecodeFromPtr ¶
func (PersistentUiView) DecodeFromPtr(p capnp.Ptr) PersistentUiView
func (PersistentUiView) EncodeAsPtr ¶
func (c PersistentUiView) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (PersistentUiView) GetFlowLimiter ¶
func (c PersistentUiView) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (PersistentUiView) GetViewInfo ¶
func (c PersistentUiView) GetViewInfo(ctx context.Context, params func(grain.UiView_getViewInfo_Params) error) (grain.UiView_ViewInfo_Future, capnp.ReleaseFunc)
func (PersistentUiView) IsSame ¶
func (c PersistentUiView) IsSame(other PersistentUiView) 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 (PersistentUiView) IsValid ¶
func (c PersistentUiView) 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 (PersistentUiView) NewOfferSession ¶
func (c PersistentUiView) NewOfferSession(ctx context.Context, params func(grain.UiView_newOfferSession_Params) error) (grain.UiView_newOfferSession_Results_Future, capnp.ReleaseFunc)
func (PersistentUiView) NewRequestSession ¶
func (c PersistentUiView) NewRequestSession(ctx context.Context, params func(grain.UiView_newRequestSession_Params) error) (grain.UiView_newRequestSession_Results_Future, capnp.ReleaseFunc)
func (PersistentUiView) NewSession ¶
func (c PersistentUiView) NewSession(ctx context.Context, params func(grain.UiView_newSession_Params) error) (grain.UiView_newSession_Results_Future, capnp.ReleaseFunc)
func (PersistentUiView) Release ¶
func (c PersistentUiView) 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 (PersistentUiView) Resolve ¶
func (c PersistentUiView) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (PersistentUiView) Save ¶
func (c PersistentUiView) Save(ctx context.Context, params func(persistent.Persistent_SaveParams) error) (persistent.Persistent_SaveResults_Future, capnp.ReleaseFunc)
func (PersistentUiView) SetFlowLimiter ¶
func (c PersistentUiView) 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 (PersistentUiView) String ¶
func (c PersistentUiView) 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.
type PersistentUiView_List ¶
type PersistentUiView_List = capnp.CapList[PersistentUiView]
PersistentUiView_List is a list of PersistentUiView.
type PersistentUiView_Server ¶
type PersistentUiView_Server interface { GetViewInfo(context.Context, grain.UiView_getViewInfo) error NewSession(context.Context, grain.UiView_newSession) error NewRequestSession(context.Context, grain.UiView_newRequestSession) error NewOfferSession(context.Context, grain.UiView_newOfferSession) error AddRequirements(context.Context, supervisor.SystemPersistent_addRequirements) error Save(context.Context, persistent.Persistent_save) error }