sandstormhttpbridgeinternal

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BridgeHttpSession_TypeID = 0xb71e38915c2a2afc

BridgeHttpSession_TypeID is the unique identifier for the type BridgeHttpSession.

View Source
const BridgeObjectId_HttpApi_TypeID = 0x903896a2654fb12b

BridgeObjectId_HttpApi_TypeID is the unique identifier for the type BridgeObjectId_HttpApi.

View Source
const BridgeObjectId_TypeID = 0xde7c54260c265bb4

BridgeObjectId_TypeID is the unique identifier for the type BridgeObjectId.

View Source
const (
	BridgeRequestSessionHtml = "" /* 2297-byte string literal not displayed */
)

Constants defined in sandstorm-http-bridge-internal.capnp.

View Source
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

type BridgeHttpSession capnp.Client

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

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

func (BridgeHttpSession) EncodeAsPtr

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

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) OpenWebSocket

func (BridgeHttpSession) Options

func (BridgeHttpSession) PostStreaming

func (BridgeHttpSession) Propfind

func (BridgeHttpSession) Proppatch

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) Resolve

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

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

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.

type BridgeHttpSession_List

type BridgeHttpSession_List = capnp.CapList[BridgeHttpSession]

BridgeHttpSession_List is a list of BridgeHttpSession.

func NewBridgeHttpSession_List

func NewBridgeHttpSession_List(s *capnp.Segment, sz int32) (BridgeHttpSession_List, error)

NewBridgeHttpSession creates a new list of BridgeHttpSession.

type BridgeObjectId

type BridgeObjectId capnp.Struct

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 (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 (BridgeObjectId) String

func (s BridgeObjectId) String() string

func (BridgeObjectId) ToPtr

func (s BridgeObjectId) ToPtr() capnp.Ptr

func (BridgeObjectId) Which

type BridgeObjectId_Future

type BridgeObjectId_Future struct{ *capnp.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 (BridgeObjectId_Future) Struct

type BridgeObjectId_HttpApi

type BridgeObjectId_HttpApi capnp.Struct

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) 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

type BridgeObjectId_HttpApi_Future struct{ *capnp.Future }

BridgeObjectId_HttpApi_Future is a wrapper for a BridgeObjectId_HttpApi promised by a client call.

func (BridgeObjectId_HttpApi_Future) Struct

type BridgeObjectId_HttpApi_List

type BridgeObjectId_HttpApi_List = capnp.StructList[BridgeObjectId_HttpApi]

BridgeObjectId_HttpApi_List is a list of BridgeObjectId_HttpApi.

func NewBridgeObjectId_HttpApi_List

func NewBridgeObjectId_HttpApi_List(s *capnp.Segment, sz int32) (BridgeObjectId_HttpApi_List, error)

NewBridgeObjectId_HttpApi creates a new list of BridgeObjectId_HttpApi.

type BridgeObjectId_List

type BridgeObjectId_List = capnp.StructList[BridgeObjectId]

BridgeObjectId_List is a list of BridgeObjectId.

func NewBridgeObjectId_List

func NewBridgeObjectId_List(s *capnp.Segment, sz int32) (BridgeObjectId_List, error)

NewBridgeObjectId creates a new 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

type SessionInfo capnp.Struct

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) EncodeAsPtr

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

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

type SessionInfo_Future struct{ *capnp.Future }

SessionInfo_Future is a wrapper for a SessionInfo promised by a client call.

func (SessionInfo_Future) Offer

func (SessionInfo_Future) Request

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.

func NewSessionInfo_List

func NewSessionInfo_List(s *capnp.Segment, sz int32) (SessionInfo_List, error)

NewSessionInfo creates a new 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 (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 (SessionInfo_offer) SetOffer

func (s SessionInfo_offer) SetOffer(c capnp.Client) error

type SessionInfo_offer_Future

type SessionInfo_offer_Future struct{ *capnp.Future }

SessionInfo_offer_Future is a wrapper for a SessionInfo_offer promised by a client call.

func (SessionInfo_offer_Future) Descriptor

func (SessionInfo_offer_Future) Offer

func (SessionInfo_offer_Future) Struct

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

NewRequestInfo sets the requestInfo field to a newly allocated powerbox.PowerboxDescriptor_List, preferring placement in s's segment.

func (SessionInfo_request) RequestInfo

func (SessionInfo_request) Segment

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

func (SessionInfo_request) SetRequestInfo

type SessionInfo_request_Future

type SessionInfo_request_Future struct{ *capnp.Future }

SessionInfo_request_Future is a wrapper for a SessionInfo_request promised by a client call.

func (SessionInfo_request_Future) Struct

Jump to

Keyboard shortcuts

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