Documentation ¶
Index ¶
- Constants
- func BridgeHttpSession_Methods(methods []server.Method, s BridgeHttpSession_Server) []server.Method
- func BridgeHttpSession_NewServer(s BridgeHttpSession_Server) *server.Server
- type BridgeHttpSession
- func (c BridgeHttpSession) Acl(ctx context.Context, params func(websession.WebSession_acl_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) AddRef() BridgeHttpSession
- func (c BridgeHttpSession) Copy(ctx context.Context, params func(websession.WebSession_copy_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (BridgeHttpSession) DecodeFromPtr(p capnp.Ptr) BridgeHttpSession
- func (c BridgeHttpSession) Delete(ctx context.Context, params func(websession.WebSession_delete_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (c BridgeHttpSession) Get(ctx context.Context, params func(websession.WebSession_get_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) GetFlowLimiter() fc.FlowLimiter
- func (c BridgeHttpSession) IsSame(other BridgeHttpSession) bool
- func (c BridgeHttpSession) IsValid() bool
- func (c BridgeHttpSession) Lock(ctx context.Context, params func(websession.WebSession_lock_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Mkcol(ctx context.Context, params func(websession.WebSession_mkcol_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Move(ctx context.Context, params func(websession.WebSession_move_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) OpenWebSocket(ctx context.Context, ...) (websession.WebSession_openWebSocket_Results_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Options(ctx context.Context, params func(websession.WebSession_options_Params) error) (websession.WebSession_Options_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Patch(ctx context.Context, params func(websession.WebSession_patch_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Post(ctx context.Context, params func(websession.WebSession_post_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) PostStreaming(ctx context.Context, ...) (websession.WebSession_postStreaming_Results_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Propfind(ctx context.Context, params func(websession.WebSession_propfind_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Proppatch(ctx context.Context, params func(websession.WebSession_proppatch_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Put(ctx context.Context, params func(websession.WebSession_put_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) PutStreaming(ctx context.Context, ...) (websession.WebSession_putStreaming_Results_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Release()
- func (c BridgeHttpSession) Report(ctx context.Context, params func(websession.WebSession_report_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) Resolve(ctx context.Context) error
- func (c BridgeHttpSession) Save(ctx context.Context, params func(grain.AppPersistent_save_Params) error) (grain.AppPersistent_save_Results_Future, capnp.ReleaseFunc)
- func (c BridgeHttpSession) SetFlowLimiter(lim fc.FlowLimiter)
- func (c BridgeHttpSession) String() string
- func (c BridgeHttpSession) Unlock(ctx context.Context, params func(websession.WebSession_unlock_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
- type BridgeHttpSession_List
- type BridgeHttpSession_Server
- type BridgeObjectId
- func (s BridgeObjectId) Application() (capnp.Ptr, error)
- func (BridgeObjectId) DecodeFromPtr(p capnp.Ptr) BridgeObjectId
- func (s BridgeObjectId) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s BridgeObjectId) HasApplication() bool
- func (s BridgeObjectId) HasHttpApi() bool
- func (s BridgeObjectId) HttpApi() (BridgeObjectId_HttpApi, error)
- func (s BridgeObjectId) IsValid() bool
- func (s BridgeObjectId) Message() *capnp.Message
- func (s BridgeObjectId) NewHttpApi() (BridgeObjectId_HttpApi, error)
- func (s BridgeObjectId) Segment() *capnp.Segment
- func (s BridgeObjectId) SetApplication(v capnp.Ptr) error
- func (s BridgeObjectId) SetHttpApi(v BridgeObjectId_HttpApi) error
- func (s BridgeObjectId) String() string
- func (s BridgeObjectId) ToPtr() capnp.Ptr
- func (s BridgeObjectId) Which() BridgeObjectId_Which
- type BridgeObjectId_Future
- type BridgeObjectId_HttpApi
- func (BridgeObjectId_HttpApi) DecodeFromPtr(p capnp.Ptr) BridgeObjectId_HttpApi
- func (s BridgeObjectId_HttpApi) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s BridgeObjectId_HttpApi) HasIdentityId() bool
- func (s BridgeObjectId_HttpApi) HasName() bool
- func (s BridgeObjectId_HttpApi) HasPath() bool
- func (s BridgeObjectId_HttpApi) HasPermissions() bool
- func (s BridgeObjectId_HttpApi) IdentityId() ([]byte, error)
- func (s BridgeObjectId_HttpApi) IsValid() bool
- func (s BridgeObjectId_HttpApi) Message() *capnp.Message
- func (s BridgeObjectId_HttpApi) Name() (string, error)
- func (s BridgeObjectId_HttpApi) NameBytes() ([]byte, error)
- func (s BridgeObjectId_HttpApi) NewPermissions(n int32) (capnp.BitList, error)
- func (s BridgeObjectId_HttpApi) Path() (string, error)
- func (s BridgeObjectId_HttpApi) PathBytes() ([]byte, error)
- func (s BridgeObjectId_HttpApi) Permissions() (capnp.BitList, error)
- func (s BridgeObjectId_HttpApi) Segment() *capnp.Segment
- func (s BridgeObjectId_HttpApi) SetIdentityId(v []byte) error
- func (s BridgeObjectId_HttpApi) SetName(v string) error
- func (s BridgeObjectId_HttpApi) SetPath(v string) error
- func (s BridgeObjectId_HttpApi) SetPermissions(v capnp.BitList) error
- func (s BridgeObjectId_HttpApi) String() string
- func (s BridgeObjectId_HttpApi) ToPtr() capnp.Ptr
- type BridgeObjectId_HttpApi_Future
- type BridgeObjectId_HttpApi_List
- type BridgeObjectId_List
- type BridgeObjectId_Which
- type SessionInfo
- func (SessionInfo) DecodeFromPtr(p capnp.Ptr) SessionInfo
- func (s SessionInfo) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s SessionInfo) IsValid() bool
- func (s SessionInfo) Message() *capnp.Message
- func (s SessionInfo) Offer() SessionInfo_offer
- func (s SessionInfo) Request() SessionInfo_request
- func (s SessionInfo) Segment() *capnp.Segment
- func (s SessionInfo) SetNormal()
- func (s SessionInfo) SetOffer()
- func (s SessionInfo) SetRequest()
- func (s SessionInfo) String() string
- func (s SessionInfo) ToPtr() capnp.Ptr
- func (s SessionInfo) Which() SessionInfo_Which
- type SessionInfo_Future
- type SessionInfo_List
- type SessionInfo_Which
- type SessionInfo_offer
- func (s SessionInfo_offer) Descriptor() (powerbox.PowerboxDescriptor, error)
- func (s SessionInfo_offer) HasDescriptor() bool
- func (s SessionInfo_offer) HasOffer() bool
- func (s SessionInfo_offer) IsValid() bool
- func (s SessionInfo_offer) Message() *capnp.Message
- func (s SessionInfo_offer) NewDescriptor() (powerbox.PowerboxDescriptor, error)
- func (s SessionInfo_offer) Offer() capnp.Client
- func (s SessionInfo_offer) Segment() *capnp.Segment
- func (s SessionInfo_offer) SetDescriptor(v powerbox.PowerboxDescriptor) error
- func (s SessionInfo_offer) SetOffer(c capnp.Client) error
- type SessionInfo_offer_Future
- type SessionInfo_request
- func (s SessionInfo_request) HasRequestInfo() bool
- func (s SessionInfo_request) IsValid() bool
- func (s SessionInfo_request) Message() *capnp.Message
- func (s SessionInfo_request) NewRequestInfo(n int32) (powerbox.PowerboxDescriptor_List, error)
- func (s SessionInfo_request) RequestInfo() (powerbox.PowerboxDescriptor_List, error)
- func (s SessionInfo_request) Segment() *capnp.Segment
- func (s SessionInfo_request) SetRequestInfo(v powerbox.PowerboxDescriptor_List) error
- type SessionInfo_request_Future
Constants ¶
const BridgeHttpSession_TypeID = 0xb71e38915c2a2afc
BridgeHttpSession_TypeID is the unique identifier for the type BridgeHttpSession.
const BridgeObjectId_HttpApi_TypeID = 0x903896a2654fb12b
BridgeObjectId_HttpApi_TypeID is the unique identifier for the type BridgeObjectId_HttpApi.
const BridgeObjectId_TypeID = 0xde7c54260c265bb4
BridgeObjectId_TypeID is the unique identifier for the type BridgeObjectId.
const (
BridgeRequestSessionHtml = "" /* 2297-byte string literal not displayed */
)
Constants defined in sandstorm-http-bridge-internal.capnp.
const SessionInfo_TypeID = 0xcf999463ccff87dd
SessionInfo_TypeID is the unique identifier for the type SessionInfo.
Variables ¶
This section is empty.
Functions ¶
func BridgeHttpSession_Methods ¶
func BridgeHttpSession_Methods(methods []server.Method, s BridgeHttpSession_Server) []server.Method
BridgeHttpSession_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.
func BridgeHttpSession_NewServer ¶
func BridgeHttpSession_NewServer(s BridgeHttpSession_Server) *server.Server
BridgeHttpSession_NewServer creates a new Server from an implementation of BridgeHttpSession_Server.
Types ¶
type BridgeHttpSession ¶
func BridgeHttpSession_ServerToClient ¶
func BridgeHttpSession_ServerToClient(s BridgeHttpSession_Server) BridgeHttpSession
BridgeHttpSession_ServerToClient creates a new Client from an implementation of BridgeHttpSession_Server. The caller is responsible for calling Release on the returned Client.
func (BridgeHttpSession) Acl ¶
func (c BridgeHttpSession) Acl(ctx context.Context, params func(websession.WebSession_acl_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) AddRef ¶
func (c BridgeHttpSession) AddRef() BridgeHttpSession
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 (BridgeHttpSession) Copy ¶
func (c BridgeHttpSession) Copy(ctx context.Context, params func(websession.WebSession_copy_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) DecodeFromPtr ¶
func (BridgeHttpSession) DecodeFromPtr(p capnp.Ptr) BridgeHttpSession
func (BridgeHttpSession) Delete ¶
func (c BridgeHttpSession) Delete(ctx context.Context, params func(websession.WebSession_delete_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) EncodeAsPtr ¶
func (c BridgeHttpSession) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (BridgeHttpSession) Get ¶
func (c BridgeHttpSession) Get(ctx context.Context, params func(websession.WebSession_get_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) GetFlowLimiter ¶
func (c BridgeHttpSession) GetFlowLimiter() fc.FlowLimiter
Get the current flowcontrol.FlowLimiter used to manage flow control for this client.
func (BridgeHttpSession) IsSame ¶
func (c BridgeHttpSession) IsSame(other BridgeHttpSession) 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 (BridgeHttpSession) IsValid ¶
func (c BridgeHttpSession) 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 (BridgeHttpSession) Lock ¶
func (c BridgeHttpSession) Lock(ctx context.Context, params func(websession.WebSession_lock_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Mkcol ¶
func (c BridgeHttpSession) Mkcol(ctx context.Context, params func(websession.WebSession_mkcol_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Move ¶
func (c BridgeHttpSession) Move(ctx context.Context, params func(websession.WebSession_move_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) OpenWebSocket ¶
func (c BridgeHttpSession) OpenWebSocket(ctx context.Context, params func(websession.WebSession_openWebSocket_Params) error) (websession.WebSession_openWebSocket_Results_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Options ¶
func (c BridgeHttpSession) Options(ctx context.Context, params func(websession.WebSession_options_Params) error) (websession.WebSession_Options_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Patch ¶
func (c BridgeHttpSession) Patch(ctx context.Context, params func(websession.WebSession_patch_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Post ¶
func (c BridgeHttpSession) Post(ctx context.Context, params func(websession.WebSession_post_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) PostStreaming ¶
func (c BridgeHttpSession) PostStreaming(ctx context.Context, params func(websession.WebSession_postStreaming_Params) error) (websession.WebSession_postStreaming_Results_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Propfind ¶
func (c BridgeHttpSession) Propfind(ctx context.Context, params func(websession.WebSession_propfind_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Proppatch ¶
func (c BridgeHttpSession) Proppatch(ctx context.Context, params func(websession.WebSession_proppatch_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Put ¶
func (c BridgeHttpSession) Put(ctx context.Context, params func(websession.WebSession_put_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) PutStreaming ¶
func (c BridgeHttpSession) PutStreaming(ctx context.Context, params func(websession.WebSession_putStreaming_Params) error) (websession.WebSession_putStreaming_Results_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Release ¶
func (c BridgeHttpSession) 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 (BridgeHttpSession) Report ¶
func (c BridgeHttpSession) Report(ctx context.Context, params func(websession.WebSession_report_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) Resolve ¶
func (c BridgeHttpSession) Resolve(ctx context.Context) error
Resolve blocks until the capability is fully resolved or the Context expires.
func (BridgeHttpSession) Save ¶
func (c BridgeHttpSession) Save(ctx context.Context, params func(grain.AppPersistent_save_Params) error) (grain.AppPersistent_save_Results_Future, capnp.ReleaseFunc)
func (BridgeHttpSession) SetFlowLimiter ¶
func (c BridgeHttpSession) 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 (BridgeHttpSession) String ¶
func (c BridgeHttpSession) 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 (BridgeHttpSession) Unlock ¶
func (c BridgeHttpSession) Unlock(ctx context.Context, params func(websession.WebSession_unlock_Params) error) (websession.WebSession_Response_Future, capnp.ReleaseFunc)
type BridgeHttpSession_List ¶
type BridgeHttpSession_List = capnp.CapList[BridgeHttpSession]
BridgeHttpSession_List is a list of BridgeHttpSession.
type BridgeHttpSession_Server ¶
type BridgeHttpSession_Server interface { Get(context.Context, websession.WebSession_get) error Post(context.Context, websession.WebSession_post) error OpenWebSocket(context.Context, websession.WebSession_openWebSocket) error Put(context.Context, websession.WebSession_put) error Delete(context.Context, websession.WebSession_delete) error PostStreaming(context.Context, websession.WebSession_postStreaming) error PutStreaming(context.Context, websession.WebSession_putStreaming) error Propfind(context.Context, websession.WebSession_propfind) error Proppatch(context.Context, websession.WebSession_proppatch) error Mkcol(context.Context, websession.WebSession_mkcol) error Copy(context.Context, websession.WebSession_copy) error Move(context.Context, websession.WebSession_move) error Lock(context.Context, websession.WebSession_lock) error Unlock(context.Context, websession.WebSession_unlock) error Acl(context.Context, websession.WebSession_acl) error Report(context.Context, websession.WebSession_report) error Options(context.Context, websession.WebSession_options) error Patch(context.Context, websession.WebSession_patch) error Save(context.Context, grain.AppPersistent_save) error }
type BridgeObjectId ¶
func NewBridgeObjectId ¶
func NewBridgeObjectId(s *capnp.Segment) (BridgeObjectId, error)
func NewRootBridgeObjectId ¶
func NewRootBridgeObjectId(s *capnp.Segment) (BridgeObjectId, error)
func ReadRootBridgeObjectId ¶
func ReadRootBridgeObjectId(msg *capnp.Message) (BridgeObjectId, error)
func (BridgeObjectId) Application ¶
func (s BridgeObjectId) Application() (capnp.Ptr, error)
func (BridgeObjectId) DecodeFromPtr ¶
func (BridgeObjectId) DecodeFromPtr(p capnp.Ptr) BridgeObjectId
func (BridgeObjectId) EncodeAsPtr ¶
func (s BridgeObjectId) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (BridgeObjectId) HasApplication ¶
func (s BridgeObjectId) HasApplication() bool
func (BridgeObjectId) HasHttpApi ¶
func (s BridgeObjectId) HasHttpApi() bool
func (BridgeObjectId) HttpApi ¶
func (s BridgeObjectId) HttpApi() (BridgeObjectId_HttpApi, error)
func (BridgeObjectId) IsValid ¶
func (s BridgeObjectId) IsValid() bool
func (BridgeObjectId) Message ¶
func (s BridgeObjectId) Message() *capnp.Message
func (BridgeObjectId) NewHttpApi ¶
func (s BridgeObjectId) NewHttpApi() (BridgeObjectId_HttpApi, error)
NewHttpApi sets the httpApi field to a newly allocated BridgeObjectId_HttpApi struct, preferring placement in s's segment.
func (BridgeObjectId) Segment ¶
func (s BridgeObjectId) Segment() *capnp.Segment
func (BridgeObjectId) SetApplication ¶
func (s BridgeObjectId) SetApplication(v capnp.Ptr) error
func (BridgeObjectId) SetHttpApi ¶
func (s BridgeObjectId) SetHttpApi(v BridgeObjectId_HttpApi) error
func (BridgeObjectId) String ¶
func (s BridgeObjectId) String() string
func (BridgeObjectId) ToPtr ¶
func (s BridgeObjectId) ToPtr() capnp.Ptr
func (BridgeObjectId) Which ¶
func (s BridgeObjectId) Which() BridgeObjectId_Which
type BridgeObjectId_Future ¶
BridgeObjectId_Future is a wrapper for a BridgeObjectId promised by a client call.
func (BridgeObjectId_Future) Application ¶
func (p BridgeObjectId_Future) Application() *capnp.Future
func (BridgeObjectId_Future) HttpApi ¶
func (p BridgeObjectId_Future) HttpApi() BridgeObjectId_HttpApi_Future
func (BridgeObjectId_Future) Struct ¶
func (f BridgeObjectId_Future) Struct() (BridgeObjectId, error)
type BridgeObjectId_HttpApi ¶
func NewBridgeObjectId_HttpApi ¶
func NewBridgeObjectId_HttpApi(s *capnp.Segment) (BridgeObjectId_HttpApi, error)
func NewRootBridgeObjectId_HttpApi ¶
func NewRootBridgeObjectId_HttpApi(s *capnp.Segment) (BridgeObjectId_HttpApi, error)
func ReadRootBridgeObjectId_HttpApi ¶
func ReadRootBridgeObjectId_HttpApi(msg *capnp.Message) (BridgeObjectId_HttpApi, error)
func (BridgeObjectId_HttpApi) DecodeFromPtr ¶
func (BridgeObjectId_HttpApi) DecodeFromPtr(p capnp.Ptr) BridgeObjectId_HttpApi
func (BridgeObjectId_HttpApi) EncodeAsPtr ¶
func (s BridgeObjectId_HttpApi) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (BridgeObjectId_HttpApi) HasIdentityId ¶
func (s BridgeObjectId_HttpApi) HasIdentityId() bool
func (BridgeObjectId_HttpApi) HasName ¶
func (s BridgeObjectId_HttpApi) HasName() bool
func (BridgeObjectId_HttpApi) HasPath ¶
func (s BridgeObjectId_HttpApi) HasPath() bool
func (BridgeObjectId_HttpApi) HasPermissions ¶
func (s BridgeObjectId_HttpApi) HasPermissions() bool
func (BridgeObjectId_HttpApi) IdentityId ¶
func (s BridgeObjectId_HttpApi) IdentityId() ([]byte, error)
func (BridgeObjectId_HttpApi) IsValid ¶
func (s BridgeObjectId_HttpApi) IsValid() bool
func (BridgeObjectId_HttpApi) Message ¶
func (s BridgeObjectId_HttpApi) Message() *capnp.Message
func (BridgeObjectId_HttpApi) Name ¶
func (s BridgeObjectId_HttpApi) Name() (string, error)
func (BridgeObjectId_HttpApi) NameBytes ¶
func (s BridgeObjectId_HttpApi) NameBytes() ([]byte, error)
func (BridgeObjectId_HttpApi) NewPermissions ¶
func (s BridgeObjectId_HttpApi) NewPermissions(n int32) (capnp.BitList, error)
NewPermissions sets the permissions field to a newly allocated capnp.BitList, preferring placement in s's segment.
func (BridgeObjectId_HttpApi) Path ¶
func (s BridgeObjectId_HttpApi) Path() (string, error)
func (BridgeObjectId_HttpApi) PathBytes ¶
func (s BridgeObjectId_HttpApi) PathBytes() ([]byte, error)
func (BridgeObjectId_HttpApi) Permissions ¶
func (s BridgeObjectId_HttpApi) Permissions() (capnp.BitList, error)
func (BridgeObjectId_HttpApi) Segment ¶
func (s BridgeObjectId_HttpApi) Segment() *capnp.Segment
func (BridgeObjectId_HttpApi) SetIdentityId ¶
func (s BridgeObjectId_HttpApi) SetIdentityId(v []byte) error
func (BridgeObjectId_HttpApi) SetName ¶
func (s BridgeObjectId_HttpApi) SetName(v string) error
func (BridgeObjectId_HttpApi) SetPath ¶
func (s BridgeObjectId_HttpApi) SetPath(v string) error
func (BridgeObjectId_HttpApi) SetPermissions ¶
func (s BridgeObjectId_HttpApi) SetPermissions(v capnp.BitList) error
func (BridgeObjectId_HttpApi) String ¶
func (s BridgeObjectId_HttpApi) String() string
func (BridgeObjectId_HttpApi) ToPtr ¶
func (s BridgeObjectId_HttpApi) ToPtr() capnp.Ptr
type BridgeObjectId_HttpApi_Future ¶
BridgeObjectId_HttpApi_Future is a wrapper for a BridgeObjectId_HttpApi promised by a client call.
func (BridgeObjectId_HttpApi_Future) Struct ¶
func (f BridgeObjectId_HttpApi_Future) Struct() (BridgeObjectId_HttpApi, error)
type BridgeObjectId_HttpApi_List ¶
type BridgeObjectId_HttpApi_List = capnp.StructList[BridgeObjectId_HttpApi]
BridgeObjectId_HttpApi_List is a list of BridgeObjectId_HttpApi.
type BridgeObjectId_List ¶
type BridgeObjectId_List = capnp.StructList[BridgeObjectId]
BridgeObjectId_List is a list of BridgeObjectId.
type BridgeObjectId_Which ¶
type BridgeObjectId_Which uint16
const ( BridgeObjectId_Which_application BridgeObjectId_Which = 0 BridgeObjectId_Which_httpApi BridgeObjectId_Which = 1 )
func (BridgeObjectId_Which) String ¶
func (w BridgeObjectId_Which) String() string
type SessionInfo ¶
func NewRootSessionInfo ¶
func NewRootSessionInfo(s *capnp.Segment) (SessionInfo, error)
func NewSessionInfo ¶
func NewSessionInfo(s *capnp.Segment) (SessionInfo, error)
func ReadRootSessionInfo ¶
func ReadRootSessionInfo(msg *capnp.Message) (SessionInfo, error)
func (SessionInfo) DecodeFromPtr ¶
func (SessionInfo) DecodeFromPtr(p capnp.Ptr) SessionInfo
func (SessionInfo) IsValid ¶
func (s SessionInfo) IsValid() bool
func (SessionInfo) Message ¶
func (s SessionInfo) Message() *capnp.Message
func (SessionInfo) Offer ¶
func (s SessionInfo) Offer() SessionInfo_offer
func (SessionInfo) Request ¶
func (s SessionInfo) Request() SessionInfo_request
func (SessionInfo) Segment ¶
func (s SessionInfo) Segment() *capnp.Segment
func (SessionInfo) SetNormal ¶
func (s SessionInfo) SetNormal()
func (SessionInfo) SetOffer ¶
func (s SessionInfo) SetOffer()
func (SessionInfo) SetRequest ¶
func (s SessionInfo) SetRequest()
func (SessionInfo) String ¶
func (s SessionInfo) String() string
func (SessionInfo) ToPtr ¶
func (s SessionInfo) ToPtr() capnp.Ptr
func (SessionInfo) Which ¶
func (s SessionInfo) Which() SessionInfo_Which
type SessionInfo_Future ¶
SessionInfo_Future is a wrapper for a SessionInfo promised by a client call.
func (SessionInfo_Future) Offer ¶
func (p SessionInfo_Future) Offer() SessionInfo_offer_Future
func (SessionInfo_Future) Request ¶
func (p SessionInfo_Future) Request() SessionInfo_request_Future
func (SessionInfo_Future) Struct ¶
func (f SessionInfo_Future) Struct() (SessionInfo, error)
type SessionInfo_List ¶
type SessionInfo_List = capnp.StructList[SessionInfo]
SessionInfo_List is a list of SessionInfo.
type SessionInfo_Which ¶
type SessionInfo_Which uint16
const ( SessionInfo_Which_normal SessionInfo_Which = 0 SessionInfo_Which_request SessionInfo_Which = 1 SessionInfo_Which_offer SessionInfo_Which = 2 )
func (SessionInfo_Which) String ¶
func (w SessionInfo_Which) String() string
type SessionInfo_offer ¶
type SessionInfo_offer SessionInfo
func (SessionInfo_offer) Descriptor ¶
func (s SessionInfo_offer) Descriptor() (powerbox.PowerboxDescriptor, error)
func (SessionInfo_offer) HasDescriptor ¶
func (s SessionInfo_offer) HasDescriptor() bool
func (SessionInfo_offer) HasOffer ¶
func (s SessionInfo_offer) HasOffer() bool
func (SessionInfo_offer) IsValid ¶
func (s SessionInfo_offer) IsValid() bool
func (SessionInfo_offer) Message ¶
func (s SessionInfo_offer) Message() *capnp.Message
func (SessionInfo_offer) NewDescriptor ¶
func (s SessionInfo_offer) NewDescriptor() (powerbox.PowerboxDescriptor, error)
NewDescriptor sets the descriptor field to a newly allocated powerbox.PowerboxDescriptor struct, preferring placement in s's segment.
func (SessionInfo_offer) Offer ¶
func (s SessionInfo_offer) Offer() capnp.Client
func (SessionInfo_offer) Segment ¶
func (s SessionInfo_offer) Segment() *capnp.Segment
func (SessionInfo_offer) SetDescriptor ¶
func (s SessionInfo_offer) SetDescriptor(v powerbox.PowerboxDescriptor) error
func (SessionInfo_offer) SetOffer ¶
func (s SessionInfo_offer) SetOffer(c capnp.Client) error
type SessionInfo_offer_Future ¶
SessionInfo_offer_Future is a wrapper for a SessionInfo_offer promised by a client call.
func (SessionInfo_offer_Future) Descriptor ¶
func (p SessionInfo_offer_Future) Descriptor() powerbox.PowerboxDescriptor_Future
func (SessionInfo_offer_Future) Offer ¶
func (p SessionInfo_offer_Future) Offer() capnp.Client
func (SessionInfo_offer_Future) Struct ¶
func (f SessionInfo_offer_Future) Struct() (SessionInfo_offer, error)
type SessionInfo_request ¶
type SessionInfo_request SessionInfo
func (SessionInfo_request) HasRequestInfo ¶
func (s SessionInfo_request) HasRequestInfo() bool
func (SessionInfo_request) IsValid ¶
func (s SessionInfo_request) IsValid() bool
func (SessionInfo_request) Message ¶
func (s SessionInfo_request) Message() *capnp.Message
func (SessionInfo_request) NewRequestInfo ¶
func (s SessionInfo_request) NewRequestInfo(n int32) (powerbox.PowerboxDescriptor_List, error)
NewRequestInfo sets the requestInfo field to a newly allocated powerbox.PowerboxDescriptor_List, preferring placement in s's segment.
func (SessionInfo_request) RequestInfo ¶
func (s SessionInfo_request) RequestInfo() (powerbox.PowerboxDescriptor_List, error)
func (SessionInfo_request) Segment ¶
func (s SessionInfo_request) Segment() *capnp.Segment
func (SessionInfo_request) SetRequestInfo ¶
func (s SessionInfo_request) SetRequestInfo(v powerbox.PowerboxDescriptor_List) error
type SessionInfo_request_Future ¶
SessionInfo_request_Future is a wrapper for a SessionInfo_request promised by a client call.
func (SessionInfo_request_Future) Struct ¶
func (f SessionInfo_request_Future) Struct() (SessionInfo_request, error)