apisession

package
v0.0.0-...-e2e80d8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ApiSession_Params_TypeID = 0xfee82d8d4c4ff597

ApiSession_Params_TypeID is the unique identifier for the type ApiSession_Params.

View Source
const ApiSession_PowerboxTag_OAuthScope_TypeID = 0xbb95f31093b1fd88

ApiSession_PowerboxTag_OAuthScope_TypeID is the unique identifier for the type ApiSession_PowerboxTag_OAuthScope.

View Source
const ApiSession_PowerboxTag_TypeID = 0x93e1f7ca567dee32

ApiSession_PowerboxTag_TypeID is the unique identifier for the type ApiSession_PowerboxTag.

View Source
const ApiSession_TypeID = 0xc879e379c625cdc7

ApiSession_TypeID is the unique identifier for the type ApiSession.

Variables

This section is empty.

Functions

func ApiSession_Methods

func ApiSession_Methods(methods []server.Method, s ApiSession_Server) []server.Method

ApiSession_Methods appends Methods to a slice that invoke the methods on s. This can be used to create a more complicated Server.

func ApiSession_NewServer

func ApiSession_NewServer(s ApiSession_Server) *server.Server

ApiSession_NewServer creates a new Server from an implementation of ApiSession_Server.

Types

type ApiSession

type ApiSession capnp.Client

func ApiSession_ServerToClient

func ApiSession_ServerToClient(s ApiSession_Server) ApiSession

ApiSession_ServerToClient creates a new Client from an implementation of ApiSession_Server. The caller is responsible for calling Release on the returned Client.

func (ApiSession) AddRef

func (c ApiSession) AddRef() ApiSession

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 (ApiSession) DecodeFromPtr

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

func (ApiSession) EncodeAsPtr

func (c ApiSession) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (ApiSession) GetFlowLimiter

func (c ApiSession) GetFlowLimiter() fc.FlowLimiter

Get the current flowcontrol.FlowLimiter used to manage flow control for this client.

func (ApiSession) IsSame

func (c ApiSession) IsSame(other ApiSession) 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 (ApiSession) IsValid

func (c ApiSession) 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 (ApiSession) Release

func (c ApiSession) 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 (ApiSession) Resolve

func (c ApiSession) Resolve(ctx context.Context) error

Resolve blocks until the capability is fully resolved or the Context expires.

func (ApiSession) SetFlowLimiter

func (c ApiSession) 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 (ApiSession) String

func (c ApiSession) 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 ApiSession_List

type ApiSession_List = capnp.CapList[ApiSession]

ApiSession_List is a list of ApiSession.

func NewApiSession_List

func NewApiSession_List(s *capnp.Segment, sz int32) (ApiSession_List, error)

NewApiSession creates a new list of ApiSession.

type ApiSession_Params

type ApiSession_Params capnp.Struct

func NewApiSession_Params

func NewApiSession_Params(s *capnp.Segment) (ApiSession_Params, error)

func NewRootApiSession_Params

func NewRootApiSession_Params(s *capnp.Segment) (ApiSession_Params, error)

func ReadRootApiSession_Params

func ReadRootApiSession_Params(msg *capnp.Message) (ApiSession_Params, error)

func (ApiSession_Params) DecodeFromPtr

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

func (ApiSession_Params) EncodeAsPtr

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

func (ApiSession_Params) HasRemoteAddress

func (s ApiSession_Params) HasRemoteAddress() bool

func (ApiSession_Params) IsValid

func (s ApiSession_Params) IsValid() bool

func (ApiSession_Params) Message

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

func (ApiSession_Params) NewRemoteAddress

func (s ApiSession_Params) NewRemoteAddress() (ip.IpAddress, error)

NewRemoteAddress sets the remoteAddress field to a newly allocated ip.IpAddress struct, preferring placement in s's segment.

func (ApiSession_Params) RemoteAddress

func (s ApiSession_Params) RemoteAddress() (ip.IpAddress, error)

func (ApiSession_Params) Segment

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

func (ApiSession_Params) SetRemoteAddress

func (s ApiSession_Params) SetRemoteAddress(v ip.IpAddress) error

func (ApiSession_Params) String

func (s ApiSession_Params) String() string

func (ApiSession_Params) ToPtr

func (s ApiSession_Params) ToPtr() capnp.Ptr

type ApiSession_Params_Future

type ApiSession_Params_Future struct{ *capnp.Future }

ApiSession_Params_Future is a wrapper for a ApiSession_Params promised by a client call.

func (ApiSession_Params_Future) RemoteAddress

func (p ApiSession_Params_Future) RemoteAddress() ip.IpAddress_Future

func (ApiSession_Params_Future) Struct

type ApiSession_Params_List

type ApiSession_Params_List = capnp.StructList[ApiSession_Params]

ApiSession_Params_List is a list of ApiSession_Params.

func NewApiSession_Params_List

func NewApiSession_Params_List(s *capnp.Segment, sz int32) (ApiSession_Params_List, error)

NewApiSession_Params creates a new list of ApiSession_Params.

type ApiSession_PowerboxTag

type ApiSession_PowerboxTag capnp.Struct

func NewApiSession_PowerboxTag

func NewApiSession_PowerboxTag(s *capnp.Segment) (ApiSession_PowerboxTag, error)

func NewRootApiSession_PowerboxTag

func NewRootApiSession_PowerboxTag(s *capnp.Segment) (ApiSession_PowerboxTag, error)

func ReadRootApiSession_PowerboxTag

func ReadRootApiSession_PowerboxTag(msg *capnp.Message) (ApiSession_PowerboxTag, error)

func (ApiSession_PowerboxTag) Authentication

func (s ApiSession_PowerboxTag) Authentication() (string, error)

func (ApiSession_PowerboxTag) AuthenticationBytes

func (s ApiSession_PowerboxTag) AuthenticationBytes() ([]byte, error)

func (ApiSession_PowerboxTag) CanonicalUrl

func (s ApiSession_PowerboxTag) CanonicalUrl() (string, error)

func (ApiSession_PowerboxTag) CanonicalUrlBytes

func (s ApiSession_PowerboxTag) CanonicalUrlBytes() ([]byte, error)

func (ApiSession_PowerboxTag) DecodeFromPtr

func (ApiSession_PowerboxTag) EncodeAsPtr

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

func (ApiSession_PowerboxTag) HasAuthentication

func (s ApiSession_PowerboxTag) HasAuthentication() bool

func (ApiSession_PowerboxTag) HasCanonicalUrl

func (s ApiSession_PowerboxTag) HasCanonicalUrl() bool

func (ApiSession_PowerboxTag) HasOauthScopes

func (s ApiSession_PowerboxTag) HasOauthScopes() bool

func (ApiSession_PowerboxTag) IsValid

func (s ApiSession_PowerboxTag) IsValid() bool

func (ApiSession_PowerboxTag) Message

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

func (ApiSession_PowerboxTag) NewOauthScopes

NewOauthScopes sets the oauthScopes field to a newly allocated ApiSession_PowerboxTag_OAuthScope_List, preferring placement in s's segment.

func (ApiSession_PowerboxTag) OauthScopes

func (ApiSession_PowerboxTag) Segment

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

func (ApiSession_PowerboxTag) SetAuthentication

func (s ApiSession_PowerboxTag) SetAuthentication(v string) error

func (ApiSession_PowerboxTag) SetCanonicalUrl

func (s ApiSession_PowerboxTag) SetCanonicalUrl(v string) error

func (ApiSession_PowerboxTag) SetOauthScopes

func (ApiSession_PowerboxTag) String

func (s ApiSession_PowerboxTag) String() string

func (ApiSession_PowerboxTag) ToPtr

func (s ApiSession_PowerboxTag) ToPtr() capnp.Ptr

type ApiSession_PowerboxTag_Future

type ApiSession_PowerboxTag_Future struct{ *capnp.Future }

ApiSession_PowerboxTag_Future is a wrapper for a ApiSession_PowerboxTag promised by a client call.

func (ApiSession_PowerboxTag_Future) Struct

type ApiSession_PowerboxTag_List

type ApiSession_PowerboxTag_List = capnp.StructList[ApiSession_PowerboxTag]

ApiSession_PowerboxTag_List is a list of ApiSession_PowerboxTag.

func NewApiSession_PowerboxTag_List

func NewApiSession_PowerboxTag_List(s *capnp.Segment, sz int32) (ApiSession_PowerboxTag_List, error)

NewApiSession_PowerboxTag creates a new list of ApiSession_PowerboxTag.

type ApiSession_PowerboxTag_OAuthScope

type ApiSession_PowerboxTag_OAuthScope capnp.Struct

func NewApiSession_PowerboxTag_OAuthScope

func NewApiSession_PowerboxTag_OAuthScope(s *capnp.Segment) (ApiSession_PowerboxTag_OAuthScope, error)

func NewRootApiSession_PowerboxTag_OAuthScope

func NewRootApiSession_PowerboxTag_OAuthScope(s *capnp.Segment) (ApiSession_PowerboxTag_OAuthScope, error)

func ReadRootApiSession_PowerboxTag_OAuthScope

func ReadRootApiSession_PowerboxTag_OAuthScope(msg *capnp.Message) (ApiSession_PowerboxTag_OAuthScope, error)

func (ApiSession_PowerboxTag_OAuthScope) DecodeFromPtr

func (ApiSession_PowerboxTag_OAuthScope) EncodeAsPtr

func (ApiSession_PowerboxTag_OAuthScope) HasName

func (ApiSession_PowerboxTag_OAuthScope) IsValid

func (ApiSession_PowerboxTag_OAuthScope) Message

func (ApiSession_PowerboxTag_OAuthScope) Name

func (ApiSession_PowerboxTag_OAuthScope) NameBytes

func (s ApiSession_PowerboxTag_OAuthScope) NameBytes() ([]byte, error)

func (ApiSession_PowerboxTag_OAuthScope) Segment

func (ApiSession_PowerboxTag_OAuthScope) SetName

func (ApiSession_PowerboxTag_OAuthScope) String

func (ApiSession_PowerboxTag_OAuthScope) ToPtr

type ApiSession_PowerboxTag_OAuthScope_Future

type ApiSession_PowerboxTag_OAuthScope_Future struct{ *capnp.Future }

ApiSession_PowerboxTag_OAuthScope_Future is a wrapper for a ApiSession_PowerboxTag_OAuthScope promised by a client call.

func (ApiSession_PowerboxTag_OAuthScope_Future) Struct

type ApiSession_PowerboxTag_OAuthScope_List

type ApiSession_PowerboxTag_OAuthScope_List = capnp.StructList[ApiSession_PowerboxTag_OAuthScope]

ApiSession_PowerboxTag_OAuthScope_List is a list of ApiSession_PowerboxTag_OAuthScope.

func NewApiSession_PowerboxTag_OAuthScope_List

func NewApiSession_PowerboxTag_OAuthScope_List(s *capnp.Segment, sz int32) (ApiSession_PowerboxTag_OAuthScope_List, error)

NewApiSession_PowerboxTag_OAuthScope creates a new list of ApiSession_PowerboxTag_OAuthScope.

Jump to

Keyboard shortcuts

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