httpovercapnp

package
v3.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CommonHeaderName_TypeID = 0xee4db03aab7fb4be

CommonHeaderName_TypeID is the unique identifier for the type CommonHeaderName.

View Source
const CommonHeaderValue_TypeID = 0x83e5f307c4d3785f

CommonHeaderValue_TypeID is the unique identifier for the type CommonHeaderValue.

View Source
const CommonText = uint64(0x857745131db6fc83)
View Source
const ConnectSettings_TypeID = 0xf981e8428b86f885

ConnectSettings_TypeID is the unique identifier for the type ConnectSettings.

View Source
const HttpHeader_NameValue_TypeID = 0xed5334c41abc0375

HttpHeader_NameValue_TypeID is the unique identifier for the type HttpHeader_NameValue.

View Source
const HttpHeader_TypeID = 0xb39047580b6fd228

HttpHeader_TypeID is the unique identifier for the type HttpHeader.

View Source
const HttpMethod_TypeID = 0x8dbd3c007383731e

HttpMethod_TypeID is the unique identifier for the type HttpMethod.

View Source
const HttpRequest_TypeID = 0xdeb08db1052a4866

HttpRequest_TypeID is the unique identifier for the type HttpRequest.

View Source
const HttpResponse_TypeID = 0xf235351cf1531299

HttpResponse_TypeID is the unique identifier for the type HttpResponse.

View Source
const HttpService_ClientRequestContext_TypeID = 0xea3256705c0b63ba

HttpService_ClientRequestContext_TypeID is the unique identifier for the type HttpService_ClientRequestContext.

View Source
const HttpService_ClientRequestContext_startResponse_Params_TypeID = 0x81e666258a901e30

HttpService_ClientRequestContext_startResponse_Params_TypeID is the unique identifier for the type HttpService_ClientRequestContext_startResponse_Params.

View Source
const HttpService_ClientRequestContext_startResponse_Results_TypeID = 0x955c85d7a557d8e9

HttpService_ClientRequestContext_startResponse_Results_TypeID is the unique identifier for the type HttpService_ClientRequestContext_startResponse_Results.

View Source
const HttpService_ClientRequestContext_startWebSocket_Params_TypeID = 0xf6850b405e21d2c1

HttpService_ClientRequestContext_startWebSocket_Params_TypeID is the unique identifier for the type HttpService_ClientRequestContext_startWebSocket_Params.

View Source
const HttpService_ClientRequestContext_startWebSocket_Results_TypeID = 0xbd146efdadd86c3d

HttpService_ClientRequestContext_startWebSocket_Results_TypeID is the unique identifier for the type HttpService_ClientRequestContext_startWebSocket_Results.

View Source
const HttpService_ConnectClientRequestContext_TypeID = 0xda572939a4c3d728

HttpService_ConnectClientRequestContext_TypeID is the unique identifier for the type HttpService_ConnectClientRequestContext.

View Source
const HttpService_ConnectClientRequestContext_startConnect_Params_TypeID = 0xd0eab1ea093a6673

HttpService_ConnectClientRequestContext_startConnect_Params_TypeID is the unique identifier for the type HttpService_ConnectClientRequestContext_startConnect_Params.

View Source
const HttpService_ConnectClientRequestContext_startConnect_Results_TypeID = 0xfa73959a9a2b477d

HttpService_ConnectClientRequestContext_startConnect_Results_TypeID is the unique identifier for the type HttpService_ConnectClientRequestContext_startConnect_Results.

View Source
const HttpService_ConnectClientRequestContext_startError_Params_TypeID = 0xfe0ea4cde5df8164

HttpService_ConnectClientRequestContext_startError_Params_TypeID is the unique identifier for the type HttpService_ConnectClientRequestContext_startError_Params.

View Source
const HttpService_ConnectClientRequestContext_startError_Results_TypeID = 0xb92efa728643f0ed

HttpService_ConnectClientRequestContext_startError_Results_TypeID is the unique identifier for the type HttpService_ConnectClientRequestContext_startError_Results.

View Source
const HttpService_ServerRequestContext_TypeID = 0x99ae26bfd34f3f3b

HttpService_ServerRequestContext_TypeID is the unique identifier for the type HttpService_ServerRequestContext.

View Source
const HttpService_TypeID = 0x92963bfdad2beb6a

HttpService_TypeID is the unique identifier for the type HttpService.

View Source
const HttpService_connect_Params_TypeID = 0xa8d63d909cead201

HttpService_connect_Params_TypeID is the unique identifier for the type HttpService_connect_Params.

View Source
const HttpService_connect_Results_TypeID = 0xbf2721059c3d9248

HttpService_connect_Results_TypeID is the unique identifier for the type HttpService_connect_Results.

View Source
const HttpService_request_Params_TypeID = 0xccc73319af8d2a1b

HttpService_request_Params_TypeID is the unique identifier for the type HttpService_request_Params.

View Source
const HttpService_request_Results_TypeID = 0xfd030bd777152c43

HttpService_request_Results_TypeID is the unique identifier for the type HttpService_request_Results.

View Source
const HttpService_startRequest_Params_TypeID = 0xccefbf23794af7b3

HttpService_startRequest_Params_TypeID is the unique identifier for the type HttpService_startRequest_Params.

View Source
const HttpService_startRequest_Results_TypeID = 0xa9da072c30fec5de

HttpService_startRequest_Results_TypeID is the unique identifier for the type HttpService_startRequest_Results.

View Source
const WebSocket_TypeID = 0xb09c33a9f4caa823

WebSocket_TypeID is the unique identifier for the type WebSocket.

View Source
const WebSocket_close_Params_TypeID = 0xba1fca454f465e9a

WebSocket_close_Params_TypeID is the unique identifier for the type WebSocket_close_Params.

View Source
const WebSocket_close_Results_TypeID = 0x913fe85057da9522

WebSocket_close_Results_TypeID is the unique identifier for the type WebSocket_close_Results.

View Source
const WebSocket_sendData_Params_TypeID = 0xa9b84fb6432f030f

WebSocket_sendData_Params_TypeID is the unique identifier for the type WebSocket_sendData_Params.

View Source
const WebSocket_sendText_Params_TypeID = 0xdcf946892e5778c3

WebSocket_sendText_Params_TypeID is the unique identifier for the type WebSocket_sendText_Params.

Variables

This section is empty.

Functions

func HttpService_ClientRequestContext_Methods

func HttpService_ClientRequestContext_Methods(methods []server.Method, s HttpService_ClientRequestContext_Server) []server.Method

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

func HttpService_ClientRequestContext_NewServer

func HttpService_ClientRequestContext_NewServer(s HttpService_ClientRequestContext_Server) *server.Server

HttpService_ClientRequestContext_NewServer creates a new Server from an implementation of HttpService_ClientRequestContext_Server.

func HttpService_ConnectClientRequestContext_Methods

func HttpService_ConnectClientRequestContext_Methods(methods []server.Method, s HttpService_ConnectClientRequestContext_Server) []server.Method

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

func HttpService_ConnectClientRequestContext_NewServer

func HttpService_ConnectClientRequestContext_NewServer(s HttpService_ConnectClientRequestContext_Server) *server.Server

HttpService_ConnectClientRequestContext_NewServer creates a new Server from an implementation of HttpService_ConnectClientRequestContext_Server.

func HttpService_Methods

func HttpService_Methods(methods []server.Method, s HttpService_Server) []server.Method

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

func HttpService_NewServer

func HttpService_NewServer(s HttpService_Server) *server.Server

HttpService_NewServer creates a new Server from an implementation of HttpService_Server.

func HttpService_ServerRequestContext_Methods

func HttpService_ServerRequestContext_Methods(methods []server.Method, s HttpService_ServerRequestContext_Server) []server.Method

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

func HttpService_ServerRequestContext_NewServer

func HttpService_ServerRequestContext_NewServer(s HttpService_ServerRequestContext_Server) *server.Server

HttpService_ServerRequestContext_NewServer creates a new Server from an implementation of HttpService_ServerRequestContext_Server.

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

func WebSocket_Methods

func WebSocket_Methods(methods []server.Method, s WebSocket_Server) []server.Method

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

func WebSocket_NewServer

func WebSocket_NewServer(s WebSocket_Server) *server.Server

WebSocket_NewServer creates a new Server from an implementation of WebSocket_Server.

Types

type CommonHeaderName

type CommonHeaderName uint16
const (
	CommonHeaderName_invalid                  CommonHeaderName = 0
	CommonHeaderName_acceptCharset            CommonHeaderName = 1
	CommonHeaderName_acceptEncoding           CommonHeaderName = 2
	CommonHeaderName_acceptLanguage           CommonHeaderName = 3
	CommonHeaderName_acceptRanges             CommonHeaderName = 4
	CommonHeaderName_accept                   CommonHeaderName = 5
	CommonHeaderName_accessControlAllowOrigin CommonHeaderName = 6
	CommonHeaderName_age                      CommonHeaderName = 7
	CommonHeaderName_allow                    CommonHeaderName = 8
	CommonHeaderName_authorization            CommonHeaderName = 9
	CommonHeaderName_cacheControl             CommonHeaderName = 10
	CommonHeaderName_contentDisposition       CommonHeaderName = 11
	CommonHeaderName_contentEncoding          CommonHeaderName = 12
	CommonHeaderName_contentLanguage          CommonHeaderName = 13
	CommonHeaderName_contentLength            CommonHeaderName = 14
	CommonHeaderName_contentLocation          CommonHeaderName = 15
	CommonHeaderName_contentRange             CommonHeaderName = 16
	CommonHeaderName_contentType              CommonHeaderName = 17
	CommonHeaderName_cookie                   CommonHeaderName = 18
	CommonHeaderName_date                     CommonHeaderName = 19
	CommonHeaderName_etag                     CommonHeaderName = 20
	CommonHeaderName_expect                   CommonHeaderName = 21
	CommonHeaderName_expires                  CommonHeaderName = 22
	CommonHeaderName_from                     CommonHeaderName = 23
	CommonHeaderName_host                     CommonHeaderName = 24
	CommonHeaderName_ifMatch                  CommonHeaderName = 25
	CommonHeaderName_ifModifiedSince          CommonHeaderName = 26
	CommonHeaderName_ifNoneMatch              CommonHeaderName = 27
	CommonHeaderName_ifRange                  CommonHeaderName = 28
	CommonHeaderName_ifUnmodifiedSince        CommonHeaderName = 29
	CommonHeaderName_lastModified             CommonHeaderName = 30
	CommonHeaderName_link                     CommonHeaderName = 31
	CommonHeaderName_location                 CommonHeaderName = 32
	CommonHeaderName_maxForwards              CommonHeaderName = 33
	CommonHeaderName_proxyAuthenticate        CommonHeaderName = 34
	CommonHeaderName_proxyAuthorization       CommonHeaderName = 35
	CommonHeaderName_range                    CommonHeaderName = 36
	CommonHeaderName_referer                  CommonHeaderName = 37
	CommonHeaderName_refresh                  CommonHeaderName = 38
	CommonHeaderName_retryAfter               CommonHeaderName = 39
	CommonHeaderName_server                   CommonHeaderName = 40
	CommonHeaderName_setCookie                CommonHeaderName = 41
	CommonHeaderName_strictTransportSecurity  CommonHeaderName = 42
	CommonHeaderName_transferEncoding         CommonHeaderName = 43
	CommonHeaderName_userAgent                CommonHeaderName = 44
	CommonHeaderName_vary                     CommonHeaderName = 45
	CommonHeaderName_via                      CommonHeaderName = 46
	CommonHeaderName_wwwAuthenticate          CommonHeaderName = 47
)

Values of CommonHeaderName.

func CommonHeaderNameFromString

func CommonHeaderNameFromString(c string) CommonHeaderName

CommonHeaderNameFromString returns the enum value with a name, or the zero value if there's no such value.

func (CommonHeaderName) String

func (c CommonHeaderName) String() string

String returns the enum's constant name.

type CommonHeaderName_List

type CommonHeaderName_List = capnp.EnumList[CommonHeaderName]

func NewCommonHeaderName_List

func NewCommonHeaderName_List(s *capnp.Segment, sz int32) (CommonHeaderName_List, error)

type CommonHeaderValue

type CommonHeaderValue uint16
const (
	CommonHeaderValue_invalid     CommonHeaderValue = 0
	CommonHeaderValue_gzipDeflate CommonHeaderValue = 1
)

Values of CommonHeaderValue.

func CommonHeaderValueFromString

func CommonHeaderValueFromString(c string) CommonHeaderValue

CommonHeaderValueFromString returns the enum value with a name, or the zero value if there's no such value.

func (CommonHeaderValue) String

func (c CommonHeaderValue) String() string

String returns the enum's constant name.

type CommonHeaderValue_List

type CommonHeaderValue_List = capnp.EnumList[CommonHeaderValue]

func NewCommonHeaderValue_List

func NewCommonHeaderValue_List(s *capnp.Segment, sz int32) (CommonHeaderValue_List, error)

type ConnectSettings

type ConnectSettings capnp.Struct

func NewConnectSettings

func NewConnectSettings(s *capnp.Segment) (ConnectSettings, error)

func NewRootConnectSettings

func NewRootConnectSettings(s *capnp.Segment) (ConnectSettings, error)

func ReadRootConnectSettings

func ReadRootConnectSettings(msg *capnp.Message) (ConnectSettings, error)

func (ConnectSettings) DecodeFromPtr

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

func (ConnectSettings) EncodeAsPtr

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

func (ConnectSettings) IsValid

func (s ConnectSettings) IsValid() bool

func (ConnectSettings) Message

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

func (ConnectSettings) Segment

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

func (ConnectSettings) SetUseTls

func (s ConnectSettings) SetUseTls(v bool)

func (ConnectSettings) String

func (s ConnectSettings) String() string

func (ConnectSettings) ToPtr

func (s ConnectSettings) ToPtr() capnp.Ptr

func (ConnectSettings) UseTls

func (s ConnectSettings) UseTls() bool

type ConnectSettings_Future

type ConnectSettings_Future struct{ *capnp.Future }

ConnectSettings_Future is a wrapper for a ConnectSettings promised by a client call.

func (ConnectSettings_Future) Struct

type ConnectSettings_List

type ConnectSettings_List = capnp.StructList[ConnectSettings]

ConnectSettings_List is a list of ConnectSettings.

func NewConnectSettings_List

func NewConnectSettings_List(s *capnp.Segment, sz int32) (ConnectSettings_List, error)

NewConnectSettings creates a new list of ConnectSettings.

type HttpHeader

type HttpHeader capnp.Struct

func NewHttpHeader

func NewHttpHeader(s *capnp.Segment) (HttpHeader, error)

func NewRootHttpHeader

func NewRootHttpHeader(s *capnp.Segment) (HttpHeader, error)

func ReadRootHttpHeader

func ReadRootHttpHeader(msg *capnp.Message) (HttpHeader, error)

func (HttpHeader) Common

func (s HttpHeader) Common() HttpHeader_common

func (HttpHeader) DecodeFromPtr

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

func (HttpHeader) EncodeAsPtr

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

func (HttpHeader) HasUncommon

func (s HttpHeader) HasUncommon() bool

func (HttpHeader) IsValid

func (s HttpHeader) IsValid() bool

func (HttpHeader) Message

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

func (HttpHeader) NewUncommon

func (s HttpHeader) NewUncommon() (HttpHeader_NameValue, error)

NewUncommon sets the uncommon field to a newly allocated HttpHeader_NameValue struct, preferring placement in s's segment.

func (HttpHeader) Segment

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

func (HttpHeader) SetCommon

func (s HttpHeader) SetCommon()

func (HttpHeader) SetUncommon

func (s HttpHeader) SetUncommon(v HttpHeader_NameValue) error

func (HttpHeader) String

func (s HttpHeader) String() string

func (HttpHeader) ToPtr

func (s HttpHeader) ToPtr() capnp.Ptr

func (HttpHeader) Uncommon

func (s HttpHeader) Uncommon() (HttpHeader_NameValue, error)

func (HttpHeader) Which

func (s HttpHeader) Which() HttpHeader_Which

type HttpHeader_Future

type HttpHeader_Future struct{ *capnp.Future }

HttpHeader_Future is a wrapper for a HttpHeader promised by a client call.

func (HttpHeader_Future) Common

func (HttpHeader_Future) Struct

func (f HttpHeader_Future) Struct() (HttpHeader, error)

func (HttpHeader_Future) Uncommon

type HttpHeader_List

type HttpHeader_List = capnp.StructList[HttpHeader]

HttpHeader_List is a list of HttpHeader.

func NewHttpHeader_List

func NewHttpHeader_List(s *capnp.Segment, sz int32) (HttpHeader_List, error)

NewHttpHeader creates a new list of HttpHeader.

type HttpHeader_NameValue

type HttpHeader_NameValue capnp.Struct

func NewHttpHeader_NameValue

func NewHttpHeader_NameValue(s *capnp.Segment) (HttpHeader_NameValue, error)

func NewRootHttpHeader_NameValue

func NewRootHttpHeader_NameValue(s *capnp.Segment) (HttpHeader_NameValue, error)

func ReadRootHttpHeader_NameValue

func ReadRootHttpHeader_NameValue(msg *capnp.Message) (HttpHeader_NameValue, error)

func (HttpHeader_NameValue) DecodeFromPtr

func (HttpHeader_NameValue) EncodeAsPtr

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

func (HttpHeader_NameValue) HasName

func (s HttpHeader_NameValue) HasName() bool

func (HttpHeader_NameValue) HasValue

func (s HttpHeader_NameValue) HasValue() bool

func (HttpHeader_NameValue) IsValid

func (s HttpHeader_NameValue) IsValid() bool

func (HttpHeader_NameValue) Message

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

func (HttpHeader_NameValue) Name

func (s HttpHeader_NameValue) Name() (string, error)

func (HttpHeader_NameValue) NameBytes

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

func (HttpHeader_NameValue) Segment

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

func (HttpHeader_NameValue) SetName

func (s HttpHeader_NameValue) SetName(v string) error

func (HttpHeader_NameValue) SetValue

func (s HttpHeader_NameValue) SetValue(v string) error

func (HttpHeader_NameValue) String

func (s HttpHeader_NameValue) String() string

func (HttpHeader_NameValue) ToPtr

func (s HttpHeader_NameValue) ToPtr() capnp.Ptr

func (HttpHeader_NameValue) Value

func (s HttpHeader_NameValue) Value() (string, error)

func (HttpHeader_NameValue) ValueBytes

func (s HttpHeader_NameValue) ValueBytes() ([]byte, error)

type HttpHeader_NameValue_Future

type HttpHeader_NameValue_Future struct{ *capnp.Future }

HttpHeader_NameValue_Future is a wrapper for a HttpHeader_NameValue promised by a client call.

func (HttpHeader_NameValue_Future) Struct

type HttpHeader_NameValue_List

type HttpHeader_NameValue_List = capnp.StructList[HttpHeader_NameValue]

HttpHeader_NameValue_List is a list of HttpHeader_NameValue.

func NewHttpHeader_NameValue_List

func NewHttpHeader_NameValue_List(s *capnp.Segment, sz int32) (HttpHeader_NameValue_List, error)

NewHttpHeader_NameValue creates a new list of HttpHeader_NameValue.

type HttpHeader_Which

type HttpHeader_Which uint16
const (
	HttpHeader_Which_common   HttpHeader_Which = 0
	HttpHeader_Which_uncommon HttpHeader_Which = 1
)

func (HttpHeader_Which) String

func (w HttpHeader_Which) String() string

type HttpHeader_common

type HttpHeader_common HttpHeader

func (HttpHeader_common) CommonValue

func (s HttpHeader_common) CommonValue() CommonHeaderValue

func (HttpHeader_common) HasValue

func (s HttpHeader_common) HasValue() bool

func (HttpHeader_common) IsValid

func (s HttpHeader_common) IsValid() bool

func (HttpHeader_common) Message

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

func (HttpHeader_common) Name

func (HttpHeader_common) Segment

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

func (HttpHeader_common) SetCommonValue

func (s HttpHeader_common) SetCommonValue(v CommonHeaderValue)

func (HttpHeader_common) SetName

func (s HttpHeader_common) SetName(v CommonHeaderName)

func (HttpHeader_common) SetValue

func (s HttpHeader_common) SetValue(v string) error

func (HttpHeader_common) Value

func (s HttpHeader_common) Value() (string, error)

func (HttpHeader_common) ValueBytes

func (s HttpHeader_common) ValueBytes() ([]byte, error)

func (HttpHeader_common) Which

type HttpHeader_common_Future

type HttpHeader_common_Future struct{ *capnp.Future }

HttpHeader_common_Future is a wrapper for a HttpHeader_common promised by a client call.

func (HttpHeader_common_Future) Struct

type HttpHeader_common_Which

type HttpHeader_common_Which uint16
const (
	HttpHeader_common_Which_commonValue HttpHeader_common_Which = 0
	HttpHeader_common_Which_value       HttpHeader_common_Which = 1
)

func (HttpHeader_common_Which) String

func (w HttpHeader_common_Which) String() string

type HttpMethod

type HttpMethod uint16
const (
	HttpMethod_get         HttpMethod = 0
	HttpMethod_head        HttpMethod = 1
	HttpMethod_post        HttpMethod = 2
	HttpMethod_put         HttpMethod = 3
	HttpMethod_delete      HttpMethod = 4
	HttpMethod_patch       HttpMethod = 5
	HttpMethod_purge       HttpMethod = 6
	HttpMethod_options     HttpMethod = 7
	HttpMethod_trace       HttpMethod = 8
	HttpMethod_copy        HttpMethod = 9
	HttpMethod_lock        HttpMethod = 10
	HttpMethod_mkcol       HttpMethod = 11
	HttpMethod_move        HttpMethod = 12
	HttpMethod_propfind    HttpMethod = 13
	HttpMethod_proppatch   HttpMethod = 14
	HttpMethod_search      HttpMethod = 15
	HttpMethod_unlock      HttpMethod = 16
	HttpMethod_acl         HttpMethod = 17
	HttpMethod_report      HttpMethod = 18
	HttpMethod_mkactivity  HttpMethod = 19
	HttpMethod_checkout    HttpMethod = 20
	HttpMethod_merge       HttpMethod = 21
	HttpMethod_msearch     HttpMethod = 22
	HttpMethod_notify      HttpMethod = 23
	HttpMethod_subscribe   HttpMethod = 24
	HttpMethod_unsubscribe HttpMethod = 25
)

Values of HttpMethod.

func HttpMethodFromString

func HttpMethodFromString(c string) HttpMethod

HttpMethodFromString returns the enum value with a name, or the zero value if there's no such value.

func (HttpMethod) String

func (c HttpMethod) String() string

String returns the enum's constant name.

type HttpMethod_List

type HttpMethod_List = capnp.EnumList[HttpMethod]

func NewHttpMethod_List

func NewHttpMethod_List(s *capnp.Segment, sz int32) (HttpMethod_List, error)

type HttpRequest

type HttpRequest capnp.Struct

func NewHttpRequest

func NewHttpRequest(s *capnp.Segment) (HttpRequest, error)

func NewRootHttpRequest

func NewRootHttpRequest(s *capnp.Segment) (HttpRequest, error)

func ReadRootHttpRequest

func ReadRootHttpRequest(msg *capnp.Message) (HttpRequest, error)

func (HttpRequest) BodySize

func (s HttpRequest) BodySize() HttpRequest_bodySize

func (HttpRequest) DecodeFromPtr

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

func (HttpRequest) EncodeAsPtr

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

func (HttpRequest) HasHeaders

func (s HttpRequest) HasHeaders() bool

func (HttpRequest) HasUrl

func (s HttpRequest) HasUrl() bool

func (HttpRequest) Headers

func (s HttpRequest) Headers() (HttpHeader_List, error)

func (HttpRequest) IsValid

func (s HttpRequest) IsValid() bool

func (HttpRequest) Message

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

func (HttpRequest) Method

func (s HttpRequest) Method() HttpMethod

func (HttpRequest) NewHeaders

func (s HttpRequest) NewHeaders(n int32) (HttpHeader_List, error)

NewHeaders sets the headers field to a newly allocated HttpHeader_List, preferring placement in s's segment.

func (HttpRequest) Segment

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

func (HttpRequest) SetHeaders

func (s HttpRequest) SetHeaders(v HttpHeader_List) error

func (HttpRequest) SetMethod

func (s HttpRequest) SetMethod(v HttpMethod)

func (HttpRequest) SetUrl

func (s HttpRequest) SetUrl(v string) error

func (HttpRequest) String

func (s HttpRequest) String() string

func (HttpRequest) ToPtr

func (s HttpRequest) ToPtr() capnp.Ptr

func (HttpRequest) Url

func (s HttpRequest) Url() (string, error)

func (HttpRequest) UrlBytes

func (s HttpRequest) UrlBytes() ([]byte, error)

type HttpRequest_Future

type HttpRequest_Future struct{ *capnp.Future }

HttpRequest_Future is a wrapper for a HttpRequest promised by a client call.

func (HttpRequest_Future) BodySize

func (HttpRequest_Future) Struct

func (f HttpRequest_Future) Struct() (HttpRequest, error)

type HttpRequest_List

type HttpRequest_List = capnp.StructList[HttpRequest]

HttpRequest_List is a list of HttpRequest.

func NewHttpRequest_List

func NewHttpRequest_List(s *capnp.Segment, sz int32) (HttpRequest_List, error)

NewHttpRequest creates a new list of HttpRequest.

type HttpRequest_bodySize

type HttpRequest_bodySize HttpRequest

func (HttpRequest_bodySize) Fixed

func (s HttpRequest_bodySize) Fixed() uint64

func (HttpRequest_bodySize) IsValid

func (s HttpRequest_bodySize) IsValid() bool

func (HttpRequest_bodySize) Message

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

func (HttpRequest_bodySize) Segment

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

func (HttpRequest_bodySize) SetFixed

func (s HttpRequest_bodySize) SetFixed(v uint64)

func (HttpRequest_bodySize) SetUnknown

func (s HttpRequest_bodySize) SetUnknown()

func (HttpRequest_bodySize) Which

type HttpRequest_bodySize_Future

type HttpRequest_bodySize_Future struct{ *capnp.Future }

HttpRequest_bodySize_Future is a wrapper for a HttpRequest_bodySize promised by a client call.

func (HttpRequest_bodySize_Future) Struct

type HttpRequest_bodySize_Which

type HttpRequest_bodySize_Which uint16
const (
	HttpRequest_bodySize_Which_unknown HttpRequest_bodySize_Which = 0
	HttpRequest_bodySize_Which_fixed   HttpRequest_bodySize_Which = 1
)

func (HttpRequest_bodySize_Which) String

type HttpResponse

type HttpResponse capnp.Struct

func NewHttpResponse

func NewHttpResponse(s *capnp.Segment) (HttpResponse, error)

func NewRootHttpResponse

func NewRootHttpResponse(s *capnp.Segment) (HttpResponse, error)

func ReadRootHttpResponse

func ReadRootHttpResponse(msg *capnp.Message) (HttpResponse, error)

func (HttpResponse) BodySize

func (s HttpResponse) BodySize() HttpResponse_bodySize

func (HttpResponse) DecodeFromPtr

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

func (HttpResponse) EncodeAsPtr

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

func (HttpResponse) HasHeaders

func (s HttpResponse) HasHeaders() bool

func (HttpResponse) HasStatusText

func (s HttpResponse) HasStatusText() bool

func (HttpResponse) Headers

func (s HttpResponse) Headers() (HttpHeader_List, error)

func (HttpResponse) IsValid

func (s HttpResponse) IsValid() bool

func (HttpResponse) Message

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

func (HttpResponse) NewHeaders

func (s HttpResponse) NewHeaders(n int32) (HttpHeader_List, error)

NewHeaders sets the headers field to a newly allocated HttpHeader_List, preferring placement in s's segment.

func (HttpResponse) Segment

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

func (HttpResponse) SetHeaders

func (s HttpResponse) SetHeaders(v HttpHeader_List) error

func (HttpResponse) SetStatusCode

func (s HttpResponse) SetStatusCode(v uint16)

func (HttpResponse) SetStatusText

func (s HttpResponse) SetStatusText(v string) error

func (HttpResponse) StatusCode

func (s HttpResponse) StatusCode() uint16

func (HttpResponse) StatusText

func (s HttpResponse) StatusText() (string, error)

func (HttpResponse) StatusTextBytes

func (s HttpResponse) StatusTextBytes() ([]byte, error)

func (HttpResponse) String

func (s HttpResponse) String() string

func (HttpResponse) ToPtr

func (s HttpResponse) ToPtr() capnp.Ptr

type HttpResponse_Future

type HttpResponse_Future struct{ *capnp.Future }

HttpResponse_Future is a wrapper for a HttpResponse promised by a client call.

func (HttpResponse_Future) BodySize

func (HttpResponse_Future) Struct

func (f HttpResponse_Future) Struct() (HttpResponse, error)

type HttpResponse_List

type HttpResponse_List = capnp.StructList[HttpResponse]

HttpResponse_List is a list of HttpResponse.

func NewHttpResponse_List

func NewHttpResponse_List(s *capnp.Segment, sz int32) (HttpResponse_List, error)

NewHttpResponse creates a new list of HttpResponse.

type HttpResponse_bodySize

type HttpResponse_bodySize HttpResponse

func (HttpResponse_bodySize) Fixed

func (s HttpResponse_bodySize) Fixed() uint64

func (HttpResponse_bodySize) IsValid

func (s HttpResponse_bodySize) IsValid() bool

func (HttpResponse_bodySize) Message

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

func (HttpResponse_bodySize) Segment

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

func (HttpResponse_bodySize) SetFixed

func (s HttpResponse_bodySize) SetFixed(v uint64)

func (HttpResponse_bodySize) SetUnknown

func (s HttpResponse_bodySize) SetUnknown()

func (HttpResponse_bodySize) Which

type HttpResponse_bodySize_Future

type HttpResponse_bodySize_Future struct{ *capnp.Future }

HttpResponse_bodySize_Future is a wrapper for a HttpResponse_bodySize promised by a client call.

func (HttpResponse_bodySize_Future) Struct

type HttpResponse_bodySize_Which

type HttpResponse_bodySize_Which uint16
const (
	HttpResponse_bodySize_Which_unknown HttpResponse_bodySize_Which = 0
	HttpResponse_bodySize_Which_fixed   HttpResponse_bodySize_Which = 1
)

func (HttpResponse_bodySize_Which) String

type HttpService

type HttpService capnp.Client

func HttpService_ServerToClient

func HttpService_ServerToClient(s HttpService_Server) HttpService

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

func (HttpService) AddRef

func (c HttpService) AddRef() HttpService

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

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

func (HttpService) EncodeAsPtr

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

func (HttpService) GetFlowLimiter

func (c HttpService) GetFlowLimiter() fc.FlowLimiter

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

func (HttpService) IsSame

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

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

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

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

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

func (HttpService) SetFlowLimiter

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

func (c HttpService) 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 (HttpService) WaitStreaming

func (c HttpService) WaitStreaming() error

type HttpService_ClientRequestContext

type HttpService_ClientRequestContext capnp.Client

func HttpService_ClientRequestContext_ServerToClient

func HttpService_ClientRequestContext_ServerToClient(s HttpService_ClientRequestContext_Server) HttpService_ClientRequestContext

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

func (HttpService_ClientRequestContext) 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 (HttpService_ClientRequestContext) DecodeFromPtr

func (HttpService_ClientRequestContext) EncodeAsPtr

func (HttpService_ClientRequestContext) GetFlowLimiter

func (c HttpService_ClientRequestContext) GetFlowLimiter() fc.FlowLimiter

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

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

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

func (HttpService_ClientRequestContext) SetFlowLimiter

func (c HttpService_ClientRequestContext) 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 (HttpService_ClientRequestContext) 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 (HttpService_ClientRequestContext) WaitStreaming

func (c HttpService_ClientRequestContext) WaitStreaming() error

type HttpService_ClientRequestContext_List

type HttpService_ClientRequestContext_List = capnp.CapList[HttpService_ClientRequestContext]

HttpService_ClientRequestContext_List is a list of HttpService_ClientRequestContext.

func NewHttpService_ClientRequestContext_List

func NewHttpService_ClientRequestContext_List(s *capnp.Segment, sz int32) (HttpService_ClientRequestContext_List, error)

NewHttpService_ClientRequestContext creates a new list of HttpService_ClientRequestContext.

type HttpService_ClientRequestContext_Server

type HttpService_ClientRequestContext_Server interface {
	StartResponse(context.Context, HttpService_ClientRequestContext_startResponse) error

	StartWebSocket(context.Context, HttpService_ClientRequestContext_startWebSocket) error
}

A HttpService_ClientRequestContext_Server is a HttpService_ClientRequestContext with a local implementation.

type HttpService_ClientRequestContext_startResponse

type HttpService_ClientRequestContext_startResponse struct {
	*server.Call
}

HttpService_ClientRequestContext_startResponse holds the state for a server call to HttpService_ClientRequestContext.startResponse. See server.Call for documentation.

func (HttpService_ClientRequestContext_startResponse) AllocResults

AllocResults allocates the results struct.

func (HttpService_ClientRequestContext_startResponse) Args

Args returns the call's arguments.

type HttpService_ClientRequestContext_startResponse_Params

type HttpService_ClientRequestContext_startResponse_Params capnp.Struct

func (HttpService_ClientRequestContext_startResponse_Params) DecodeFromPtr

func (HttpService_ClientRequestContext_startResponse_Params) EncodeAsPtr

func (HttpService_ClientRequestContext_startResponse_Params) HasResponse

func (HttpService_ClientRequestContext_startResponse_Params) IsValid

func (HttpService_ClientRequestContext_startResponse_Params) Message

func (HttpService_ClientRequestContext_startResponse_Params) NewResponse

NewResponse sets the response field to a newly allocated HttpResponse struct, preferring placement in s's segment.

func (HttpService_ClientRequestContext_startResponse_Params) Response

func (HttpService_ClientRequestContext_startResponse_Params) Segment

func (HttpService_ClientRequestContext_startResponse_Params) SetResponse

func (HttpService_ClientRequestContext_startResponse_Params) String

func (HttpService_ClientRequestContext_startResponse_Params) ToPtr

type HttpService_ClientRequestContext_startResponse_Params_Future

type HttpService_ClientRequestContext_startResponse_Params_Future struct{ *capnp.Future }

HttpService_ClientRequestContext_startResponse_Params_Future is a wrapper for a HttpService_ClientRequestContext_startResponse_Params promised by a client call.

func (HttpService_ClientRequestContext_startResponse_Params_Future) Response

func (HttpService_ClientRequestContext_startResponse_Params_Future) Struct

type HttpService_ClientRequestContext_startResponse_Params_List

type HttpService_ClientRequestContext_startResponse_Params_List = capnp.StructList[HttpService_ClientRequestContext_startResponse_Params]

HttpService_ClientRequestContext_startResponse_Params_List is a list of HttpService_ClientRequestContext_startResponse_Params.

func NewHttpService_ClientRequestContext_startResponse_Params_List

func NewHttpService_ClientRequestContext_startResponse_Params_List(s *capnp.Segment, sz int32) (HttpService_ClientRequestContext_startResponse_Params_List, error)

NewHttpService_ClientRequestContext_startResponse_Params creates a new list of HttpService_ClientRequestContext_startResponse_Params.

type HttpService_ClientRequestContext_startResponse_Results

type HttpService_ClientRequestContext_startResponse_Results capnp.Struct

func (HttpService_ClientRequestContext_startResponse_Results) Body

func (HttpService_ClientRequestContext_startResponse_Results) DecodeFromPtr

func (HttpService_ClientRequestContext_startResponse_Results) EncodeAsPtr

func (HttpService_ClientRequestContext_startResponse_Results) HasBody

func (HttpService_ClientRequestContext_startResponse_Results) IsValid

func (HttpService_ClientRequestContext_startResponse_Results) Message

func (HttpService_ClientRequestContext_startResponse_Results) Segment

func (HttpService_ClientRequestContext_startResponse_Results) SetBody

func (HttpService_ClientRequestContext_startResponse_Results) String

func (HttpService_ClientRequestContext_startResponse_Results) ToPtr

type HttpService_ClientRequestContext_startResponse_Results_Future

type HttpService_ClientRequestContext_startResponse_Results_Future struct{ *capnp.Future }

HttpService_ClientRequestContext_startResponse_Results_Future is a wrapper for a HttpService_ClientRequestContext_startResponse_Results promised by a client call.

func (HttpService_ClientRequestContext_startResponse_Results_Future) Body

func (HttpService_ClientRequestContext_startResponse_Results_Future) Struct

type HttpService_ClientRequestContext_startResponse_Results_List

type HttpService_ClientRequestContext_startResponse_Results_List = capnp.StructList[HttpService_ClientRequestContext_startResponse_Results]

HttpService_ClientRequestContext_startResponse_Results_List is a list of HttpService_ClientRequestContext_startResponse_Results.

func NewHttpService_ClientRequestContext_startResponse_Results_List

func NewHttpService_ClientRequestContext_startResponse_Results_List(s *capnp.Segment, sz int32) (HttpService_ClientRequestContext_startResponse_Results_List, error)

NewHttpService_ClientRequestContext_startResponse_Results creates a new list of HttpService_ClientRequestContext_startResponse_Results.

type HttpService_ClientRequestContext_startWebSocket

type HttpService_ClientRequestContext_startWebSocket struct {
	*server.Call
}

HttpService_ClientRequestContext_startWebSocket holds the state for a server call to HttpService_ClientRequestContext.startWebSocket. See server.Call for documentation.

func (HttpService_ClientRequestContext_startWebSocket) AllocResults

AllocResults allocates the results struct.

func (HttpService_ClientRequestContext_startWebSocket) Args

Args returns the call's arguments.

type HttpService_ClientRequestContext_startWebSocket_Params

type HttpService_ClientRequestContext_startWebSocket_Params capnp.Struct

func (HttpService_ClientRequestContext_startWebSocket_Params) DecodeFromPtr

func (HttpService_ClientRequestContext_startWebSocket_Params) EncodeAsPtr

func (HttpService_ClientRequestContext_startWebSocket_Params) HasHeaders

func (HttpService_ClientRequestContext_startWebSocket_Params) HasUpSocket

func (HttpService_ClientRequestContext_startWebSocket_Params) Headers

func (HttpService_ClientRequestContext_startWebSocket_Params) IsValid

func (HttpService_ClientRequestContext_startWebSocket_Params) Message

func (HttpService_ClientRequestContext_startWebSocket_Params) NewHeaders

NewHeaders sets the headers field to a newly allocated HttpHeader_List, preferring placement in s's segment.

func (HttpService_ClientRequestContext_startWebSocket_Params) Segment

func (HttpService_ClientRequestContext_startWebSocket_Params) SetHeaders

func (HttpService_ClientRequestContext_startWebSocket_Params) SetUpSocket

func (HttpService_ClientRequestContext_startWebSocket_Params) String

func (HttpService_ClientRequestContext_startWebSocket_Params) ToPtr

func (HttpService_ClientRequestContext_startWebSocket_Params) UpSocket

type HttpService_ClientRequestContext_startWebSocket_Params_Future

type HttpService_ClientRequestContext_startWebSocket_Params_Future struct{ *capnp.Future }

HttpService_ClientRequestContext_startWebSocket_Params_Future is a wrapper for a HttpService_ClientRequestContext_startWebSocket_Params promised by a client call.

func (HttpService_ClientRequestContext_startWebSocket_Params_Future) Struct

func (HttpService_ClientRequestContext_startWebSocket_Params_Future) UpSocket

type HttpService_ClientRequestContext_startWebSocket_Params_List

type HttpService_ClientRequestContext_startWebSocket_Params_List = capnp.StructList[HttpService_ClientRequestContext_startWebSocket_Params]

HttpService_ClientRequestContext_startWebSocket_Params_List is a list of HttpService_ClientRequestContext_startWebSocket_Params.

func NewHttpService_ClientRequestContext_startWebSocket_Params_List

func NewHttpService_ClientRequestContext_startWebSocket_Params_List(s *capnp.Segment, sz int32) (HttpService_ClientRequestContext_startWebSocket_Params_List, error)

NewHttpService_ClientRequestContext_startWebSocket_Params creates a new list of HttpService_ClientRequestContext_startWebSocket_Params.

type HttpService_ClientRequestContext_startWebSocket_Results

type HttpService_ClientRequestContext_startWebSocket_Results capnp.Struct

func (HttpService_ClientRequestContext_startWebSocket_Results) DecodeFromPtr

func (HttpService_ClientRequestContext_startWebSocket_Results) DownSocket

func (HttpService_ClientRequestContext_startWebSocket_Results) EncodeAsPtr

func (HttpService_ClientRequestContext_startWebSocket_Results) HasDownSocket

func (HttpService_ClientRequestContext_startWebSocket_Results) IsValid

func (HttpService_ClientRequestContext_startWebSocket_Results) Message

func (HttpService_ClientRequestContext_startWebSocket_Results) Segment

func (HttpService_ClientRequestContext_startWebSocket_Results) SetDownSocket

func (HttpService_ClientRequestContext_startWebSocket_Results) String

func (HttpService_ClientRequestContext_startWebSocket_Results) ToPtr

type HttpService_ClientRequestContext_startWebSocket_Results_Future

type HttpService_ClientRequestContext_startWebSocket_Results_Future struct{ *capnp.Future }

HttpService_ClientRequestContext_startWebSocket_Results_Future is a wrapper for a HttpService_ClientRequestContext_startWebSocket_Results promised by a client call.

func (HttpService_ClientRequestContext_startWebSocket_Results_Future) DownSocket

func (HttpService_ClientRequestContext_startWebSocket_Results_Future) Struct

type HttpService_ClientRequestContext_startWebSocket_Results_List

type HttpService_ClientRequestContext_startWebSocket_Results_List = capnp.StructList[HttpService_ClientRequestContext_startWebSocket_Results]

HttpService_ClientRequestContext_startWebSocket_Results_List is a list of HttpService_ClientRequestContext_startWebSocket_Results.

func NewHttpService_ClientRequestContext_startWebSocket_Results_List

func NewHttpService_ClientRequestContext_startWebSocket_Results_List(s *capnp.Segment, sz int32) (HttpService_ClientRequestContext_startWebSocket_Results_List, error)

NewHttpService_ClientRequestContext_startWebSocket_Results creates a new list of HttpService_ClientRequestContext_startWebSocket_Results.

type HttpService_ConnectClientRequestContext

type HttpService_ConnectClientRequestContext capnp.Client

func HttpService_ConnectClientRequestContext_ServerToClient

func HttpService_ConnectClientRequestContext_ServerToClient(s HttpService_ConnectClientRequestContext_Server) HttpService_ConnectClientRequestContext

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

func (HttpService_ConnectClientRequestContext) 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 (HttpService_ConnectClientRequestContext) DecodeFromPtr

func (HttpService_ConnectClientRequestContext) EncodeAsPtr

func (HttpService_ConnectClientRequestContext) GetFlowLimiter

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

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

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

func (HttpService_ConnectClientRequestContext) SetFlowLimiter

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 (HttpService_ConnectClientRequestContext) 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 (HttpService_ConnectClientRequestContext) WaitStreaming

type HttpService_ConnectClientRequestContext_List

type HttpService_ConnectClientRequestContext_List = capnp.CapList[HttpService_ConnectClientRequestContext]

HttpService_ConnectClientRequestContext_List is a list of HttpService_ConnectClientRequestContext.

func NewHttpService_ConnectClientRequestContext_List

func NewHttpService_ConnectClientRequestContext_List(s *capnp.Segment, sz int32) (HttpService_ConnectClientRequestContext_List, error)

NewHttpService_ConnectClientRequestContext creates a new list of HttpService_ConnectClientRequestContext.

type HttpService_ConnectClientRequestContext_Server

type HttpService_ConnectClientRequestContext_Server interface {
	StartConnect(context.Context, HttpService_ConnectClientRequestContext_startConnect) error

	StartError(context.Context, HttpService_ConnectClientRequestContext_startError) error
}

A HttpService_ConnectClientRequestContext_Server is a HttpService_ConnectClientRequestContext with a local implementation.

type HttpService_ConnectClientRequestContext_startConnect

type HttpService_ConnectClientRequestContext_startConnect struct {
	*server.Call
}

HttpService_ConnectClientRequestContext_startConnect holds the state for a server call to HttpService_ConnectClientRequestContext.startConnect. See server.Call for documentation.

func (HttpService_ConnectClientRequestContext_startConnect) AllocResults

AllocResults allocates the results struct.

func (HttpService_ConnectClientRequestContext_startConnect) Args

Args returns the call's arguments.

type HttpService_ConnectClientRequestContext_startConnect_Params

type HttpService_ConnectClientRequestContext_startConnect_Params capnp.Struct

func (HttpService_ConnectClientRequestContext_startConnect_Params) DecodeFromPtr

func (HttpService_ConnectClientRequestContext_startConnect_Params) EncodeAsPtr

func (HttpService_ConnectClientRequestContext_startConnect_Params) HasResponse

func (HttpService_ConnectClientRequestContext_startConnect_Params) IsValid

func (HttpService_ConnectClientRequestContext_startConnect_Params) Message

func (HttpService_ConnectClientRequestContext_startConnect_Params) NewResponse

NewResponse sets the response field to a newly allocated HttpResponse struct, preferring placement in s's segment.

func (HttpService_ConnectClientRequestContext_startConnect_Params) Response

func (HttpService_ConnectClientRequestContext_startConnect_Params) Segment

func (HttpService_ConnectClientRequestContext_startConnect_Params) SetResponse

func (HttpService_ConnectClientRequestContext_startConnect_Params) String

func (HttpService_ConnectClientRequestContext_startConnect_Params) ToPtr

type HttpService_ConnectClientRequestContext_startConnect_Params_Future

type HttpService_ConnectClientRequestContext_startConnect_Params_Future struct{ *capnp.Future }

HttpService_ConnectClientRequestContext_startConnect_Params_Future is a wrapper for a HttpService_ConnectClientRequestContext_startConnect_Params promised by a client call.

func (HttpService_ConnectClientRequestContext_startConnect_Params_Future) Response

func (HttpService_ConnectClientRequestContext_startConnect_Params_Future) Struct

type HttpService_ConnectClientRequestContext_startConnect_Params_List

type HttpService_ConnectClientRequestContext_startConnect_Params_List = capnp.StructList[HttpService_ConnectClientRequestContext_startConnect_Params]

HttpService_ConnectClientRequestContext_startConnect_Params_List is a list of HttpService_ConnectClientRequestContext_startConnect_Params.

func NewHttpService_ConnectClientRequestContext_startConnect_Params_List

func NewHttpService_ConnectClientRequestContext_startConnect_Params_List(s *capnp.Segment, sz int32) (HttpService_ConnectClientRequestContext_startConnect_Params_List, error)

NewHttpService_ConnectClientRequestContext_startConnect_Params creates a new list of HttpService_ConnectClientRequestContext_startConnect_Params.

type HttpService_ConnectClientRequestContext_startConnect_Results

type HttpService_ConnectClientRequestContext_startConnect_Results capnp.Struct

func (HttpService_ConnectClientRequestContext_startConnect_Results) DecodeFromPtr

func (HttpService_ConnectClientRequestContext_startConnect_Results) EncodeAsPtr

func (HttpService_ConnectClientRequestContext_startConnect_Results) IsValid

func (HttpService_ConnectClientRequestContext_startConnect_Results) Message

func (HttpService_ConnectClientRequestContext_startConnect_Results) Segment

func (HttpService_ConnectClientRequestContext_startConnect_Results) String

func (HttpService_ConnectClientRequestContext_startConnect_Results) ToPtr

type HttpService_ConnectClientRequestContext_startConnect_Results_Future

type HttpService_ConnectClientRequestContext_startConnect_Results_Future struct{ *capnp.Future }

HttpService_ConnectClientRequestContext_startConnect_Results_Future is a wrapper for a HttpService_ConnectClientRequestContext_startConnect_Results promised by a client call.

func (HttpService_ConnectClientRequestContext_startConnect_Results_Future) Struct

type HttpService_ConnectClientRequestContext_startConnect_Results_List

type HttpService_ConnectClientRequestContext_startConnect_Results_List = capnp.StructList[HttpService_ConnectClientRequestContext_startConnect_Results]

HttpService_ConnectClientRequestContext_startConnect_Results_List is a list of HttpService_ConnectClientRequestContext_startConnect_Results.

func NewHttpService_ConnectClientRequestContext_startConnect_Results_List

func NewHttpService_ConnectClientRequestContext_startConnect_Results_List(s *capnp.Segment, sz int32) (HttpService_ConnectClientRequestContext_startConnect_Results_List, error)

NewHttpService_ConnectClientRequestContext_startConnect_Results creates a new list of HttpService_ConnectClientRequestContext_startConnect_Results.

type HttpService_ConnectClientRequestContext_startError

type HttpService_ConnectClientRequestContext_startError struct {
	*server.Call
}

HttpService_ConnectClientRequestContext_startError holds the state for a server call to HttpService_ConnectClientRequestContext.startError. See server.Call for documentation.

func (HttpService_ConnectClientRequestContext_startError) AllocResults

AllocResults allocates the results struct.

func (HttpService_ConnectClientRequestContext_startError) Args

Args returns the call's arguments.

type HttpService_ConnectClientRequestContext_startError_Params

type HttpService_ConnectClientRequestContext_startError_Params capnp.Struct

func (HttpService_ConnectClientRequestContext_startError_Params) DecodeFromPtr

func (HttpService_ConnectClientRequestContext_startError_Params) EncodeAsPtr

func (HttpService_ConnectClientRequestContext_startError_Params) HasResponse

func (HttpService_ConnectClientRequestContext_startError_Params) IsValid

func (HttpService_ConnectClientRequestContext_startError_Params) Message

func (HttpService_ConnectClientRequestContext_startError_Params) NewResponse

NewResponse sets the response field to a newly allocated HttpResponse struct, preferring placement in s's segment.

func (HttpService_ConnectClientRequestContext_startError_Params) Response

func (HttpService_ConnectClientRequestContext_startError_Params) Segment

func (HttpService_ConnectClientRequestContext_startError_Params) SetResponse

func (HttpService_ConnectClientRequestContext_startError_Params) String

func (HttpService_ConnectClientRequestContext_startError_Params) ToPtr

type HttpService_ConnectClientRequestContext_startError_Params_Future

type HttpService_ConnectClientRequestContext_startError_Params_Future struct{ *capnp.Future }

HttpService_ConnectClientRequestContext_startError_Params_Future is a wrapper for a HttpService_ConnectClientRequestContext_startError_Params promised by a client call.

func (HttpService_ConnectClientRequestContext_startError_Params_Future) Response

func (HttpService_ConnectClientRequestContext_startError_Params_Future) Struct

type HttpService_ConnectClientRequestContext_startError_Params_List

type HttpService_ConnectClientRequestContext_startError_Params_List = capnp.StructList[HttpService_ConnectClientRequestContext_startError_Params]

HttpService_ConnectClientRequestContext_startError_Params_List is a list of HttpService_ConnectClientRequestContext_startError_Params.

func NewHttpService_ConnectClientRequestContext_startError_Params_List

func NewHttpService_ConnectClientRequestContext_startError_Params_List(s *capnp.Segment, sz int32) (HttpService_ConnectClientRequestContext_startError_Params_List, error)

NewHttpService_ConnectClientRequestContext_startError_Params creates a new list of HttpService_ConnectClientRequestContext_startError_Params.

type HttpService_ConnectClientRequestContext_startError_Results

type HttpService_ConnectClientRequestContext_startError_Results capnp.Struct

func (HttpService_ConnectClientRequestContext_startError_Results) Body

func (HttpService_ConnectClientRequestContext_startError_Results) DecodeFromPtr

func (HttpService_ConnectClientRequestContext_startError_Results) EncodeAsPtr

func (HttpService_ConnectClientRequestContext_startError_Results) HasBody

func (HttpService_ConnectClientRequestContext_startError_Results) IsValid

func (HttpService_ConnectClientRequestContext_startError_Results) Message

func (HttpService_ConnectClientRequestContext_startError_Results) Segment

func (HttpService_ConnectClientRequestContext_startError_Results) SetBody

func (HttpService_ConnectClientRequestContext_startError_Results) String

func (HttpService_ConnectClientRequestContext_startError_Results) ToPtr

type HttpService_ConnectClientRequestContext_startError_Results_Future

type HttpService_ConnectClientRequestContext_startError_Results_Future struct{ *capnp.Future }

HttpService_ConnectClientRequestContext_startError_Results_Future is a wrapper for a HttpService_ConnectClientRequestContext_startError_Results promised by a client call.

func (HttpService_ConnectClientRequestContext_startError_Results_Future) Body

func (HttpService_ConnectClientRequestContext_startError_Results_Future) Struct

type HttpService_ConnectClientRequestContext_startError_Results_List

type HttpService_ConnectClientRequestContext_startError_Results_List = capnp.StructList[HttpService_ConnectClientRequestContext_startError_Results]

HttpService_ConnectClientRequestContext_startError_Results_List is a list of HttpService_ConnectClientRequestContext_startError_Results.

func NewHttpService_ConnectClientRequestContext_startError_Results_List

func NewHttpService_ConnectClientRequestContext_startError_Results_List(s *capnp.Segment, sz int32) (HttpService_ConnectClientRequestContext_startError_Results_List, error)

NewHttpService_ConnectClientRequestContext_startError_Results creates a new list of HttpService_ConnectClientRequestContext_startError_Results.

type HttpService_List

type HttpService_List = capnp.CapList[HttpService]

HttpService_List is a list of HttpService.

func NewHttpService_List

func NewHttpService_List(s *capnp.Segment, sz int32) (HttpService_List, error)

NewHttpService creates a new list of HttpService.

type HttpService_Server

type HttpService_Server interface {
	StartRequest(context.Context, HttpService_startRequest) error

	Request(context.Context, HttpService_request) error

	Connect(context.Context, HttpService_connect) error
}

A HttpService_Server is a HttpService with a local implementation.

type HttpService_ServerRequestContext

type HttpService_ServerRequestContext capnp.Client

func HttpService_ServerRequestContext_ServerToClient

func HttpService_ServerRequestContext_ServerToClient(s HttpService_ServerRequestContext_Server) HttpService_ServerRequestContext

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

func (HttpService_ServerRequestContext) 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 (HttpService_ServerRequestContext) DecodeFromPtr

func (HttpService_ServerRequestContext) EncodeAsPtr

func (HttpService_ServerRequestContext) GetFlowLimiter

func (c HttpService_ServerRequestContext) GetFlowLimiter() fc.FlowLimiter

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

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

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

func (HttpService_ServerRequestContext) SetFlowLimiter

func (c HttpService_ServerRequestContext) 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 (HttpService_ServerRequestContext) 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 (HttpService_ServerRequestContext) WaitStreaming

func (c HttpService_ServerRequestContext) WaitStreaming() error

type HttpService_ServerRequestContext_List

type HttpService_ServerRequestContext_List = capnp.CapList[HttpService_ServerRequestContext]

HttpService_ServerRequestContext_List is a list of HttpService_ServerRequestContext.

func NewHttpService_ServerRequestContext_List

func NewHttpService_ServerRequestContext_List(s *capnp.Segment, sz int32) (HttpService_ServerRequestContext_List, error)

NewHttpService_ServerRequestContext creates a new list of HttpService_ServerRequestContext.

type HttpService_ServerRequestContext_Server

type HttpService_ServerRequestContext_Server interface {
}

A HttpService_ServerRequestContext_Server is a HttpService_ServerRequestContext with a local implementation.

type HttpService_connect

type HttpService_connect struct {
	*server.Call
}

HttpService_connect holds the state for a server call to HttpService.connect. See server.Call for documentation.

func (HttpService_connect) AllocResults

AllocResults allocates the results struct.

func (HttpService_connect) Args

Args returns the call's arguments.

type HttpService_connect_Params

type HttpService_connect_Params capnp.Struct

func NewHttpService_connect_Params

func NewHttpService_connect_Params(s *capnp.Segment) (HttpService_connect_Params, error)

func NewRootHttpService_connect_Params

func NewRootHttpService_connect_Params(s *capnp.Segment) (HttpService_connect_Params, error)

func ReadRootHttpService_connect_Params

func ReadRootHttpService_connect_Params(msg *capnp.Message) (HttpService_connect_Params, error)

func (HttpService_connect_Params) Context

func (HttpService_connect_Params) DecodeFromPtr

func (HttpService_connect_Params) Down

func (HttpService_connect_Params) EncodeAsPtr

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

func (HttpService_connect_Params) HasContext

func (s HttpService_connect_Params) HasContext() bool

func (HttpService_connect_Params) HasDown

func (s HttpService_connect_Params) HasDown() bool

func (HttpService_connect_Params) HasHeaders

func (s HttpService_connect_Params) HasHeaders() bool

func (HttpService_connect_Params) HasHost

func (s HttpService_connect_Params) HasHost() bool

func (HttpService_connect_Params) HasSettings

func (s HttpService_connect_Params) HasSettings() bool

func (HttpService_connect_Params) Headers

func (HttpService_connect_Params) Host

func (HttpService_connect_Params) HostBytes

func (s HttpService_connect_Params) HostBytes() ([]byte, error)

func (HttpService_connect_Params) IsValid

func (s HttpService_connect_Params) IsValid() bool

func (HttpService_connect_Params) Message

func (HttpService_connect_Params) NewHeaders

NewHeaders sets the headers field to a newly allocated HttpHeader_List, preferring placement in s's segment.

func (HttpService_connect_Params) NewSettings

NewSettings sets the settings field to a newly allocated ConnectSettings struct, preferring placement in s's segment.

func (HttpService_connect_Params) Segment

func (HttpService_connect_Params) SetContext

func (HttpService_connect_Params) SetDown

func (HttpService_connect_Params) SetHeaders

func (HttpService_connect_Params) SetHost

func (HttpService_connect_Params) SetSettings

func (HttpService_connect_Params) Settings

func (HttpService_connect_Params) String

func (HttpService_connect_Params) ToPtr

type HttpService_connect_Params_Future

type HttpService_connect_Params_Future struct{ *capnp.Future }

HttpService_connect_Params_Future is a wrapper for a HttpService_connect_Params promised by a client call.

func (HttpService_connect_Params_Future) Context

func (HttpService_connect_Params_Future) Down

func (HttpService_connect_Params_Future) Settings

func (HttpService_connect_Params_Future) Struct

type HttpService_connect_Params_List

type HttpService_connect_Params_List = capnp.StructList[HttpService_connect_Params]

HttpService_connect_Params_List is a list of HttpService_connect_Params.

func NewHttpService_connect_Params_List

func NewHttpService_connect_Params_List(s *capnp.Segment, sz int32) (HttpService_connect_Params_List, error)

NewHttpService_connect_Params creates a new list of HttpService_connect_Params.

type HttpService_connect_Results

type HttpService_connect_Results capnp.Struct

func NewHttpService_connect_Results

func NewHttpService_connect_Results(s *capnp.Segment) (HttpService_connect_Results, error)

func NewRootHttpService_connect_Results

func NewRootHttpService_connect_Results(s *capnp.Segment) (HttpService_connect_Results, error)

func ReadRootHttpService_connect_Results

func ReadRootHttpService_connect_Results(msg *capnp.Message) (HttpService_connect_Results, error)

func (HttpService_connect_Results) DecodeFromPtr

func (HttpService_connect_Results) EncodeAsPtr

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

func (HttpService_connect_Results) HasUp

func (HttpService_connect_Results) IsValid

func (s HttpService_connect_Results) IsValid() bool

func (HttpService_connect_Results) Message

func (HttpService_connect_Results) Segment

func (HttpService_connect_Results) SetUp

func (HttpService_connect_Results) String

func (HttpService_connect_Results) ToPtr

func (HttpService_connect_Results) Up

type HttpService_connect_Results_Future

type HttpService_connect_Results_Future struct{ *capnp.Future }

HttpService_connect_Results_Future is a wrapper for a HttpService_connect_Results promised by a client call.

func (HttpService_connect_Results_Future) Struct

func (HttpService_connect_Results_Future) Up

type HttpService_connect_Results_List

type HttpService_connect_Results_List = capnp.StructList[HttpService_connect_Results]

HttpService_connect_Results_List is a list of HttpService_connect_Results.

func NewHttpService_connect_Results_List

func NewHttpService_connect_Results_List(s *capnp.Segment, sz int32) (HttpService_connect_Results_List, error)

NewHttpService_connect_Results creates a new list of HttpService_connect_Results.

type HttpService_request

type HttpService_request struct {
	*server.Call
}

HttpService_request holds the state for a server call to HttpService.request. See server.Call for documentation.

func (HttpService_request) AllocResults

AllocResults allocates the results struct.

func (HttpService_request) Args

Args returns the call's arguments.

type HttpService_request_Params

type HttpService_request_Params capnp.Struct

func NewHttpService_request_Params

func NewHttpService_request_Params(s *capnp.Segment) (HttpService_request_Params, error)

func NewRootHttpService_request_Params

func NewRootHttpService_request_Params(s *capnp.Segment) (HttpService_request_Params, error)

func ReadRootHttpService_request_Params

func ReadRootHttpService_request_Params(msg *capnp.Message) (HttpService_request_Params, error)

func (HttpService_request_Params) Context

func (HttpService_request_Params) DecodeFromPtr

func (HttpService_request_Params) EncodeAsPtr

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

func (HttpService_request_Params) HasContext

func (s HttpService_request_Params) HasContext() bool

func (HttpService_request_Params) HasRequest

func (s HttpService_request_Params) HasRequest() bool

func (HttpService_request_Params) IsValid

func (s HttpService_request_Params) IsValid() bool

func (HttpService_request_Params) Message

func (HttpService_request_Params) NewRequest

func (s HttpService_request_Params) NewRequest() (HttpRequest, error)

NewRequest sets the request field to a newly allocated HttpRequest struct, preferring placement in s's segment.

func (HttpService_request_Params) Request

func (HttpService_request_Params) Segment

func (HttpService_request_Params) SetContext

func (HttpService_request_Params) SetRequest

func (HttpService_request_Params) String

func (HttpService_request_Params) ToPtr

type HttpService_request_Params_Future

type HttpService_request_Params_Future struct{ *capnp.Future }

HttpService_request_Params_Future is a wrapper for a HttpService_request_Params promised by a client call.

func (HttpService_request_Params_Future) Context

func (HttpService_request_Params_Future) Request

func (HttpService_request_Params_Future) Struct

type HttpService_request_Params_List

type HttpService_request_Params_List = capnp.StructList[HttpService_request_Params]

HttpService_request_Params_List is a list of HttpService_request_Params.

func NewHttpService_request_Params_List

func NewHttpService_request_Params_List(s *capnp.Segment, sz int32) (HttpService_request_Params_List, error)

NewHttpService_request_Params creates a new list of HttpService_request_Params.

type HttpService_request_Results

type HttpService_request_Results capnp.Struct

func NewHttpService_request_Results

func NewHttpService_request_Results(s *capnp.Segment) (HttpService_request_Results, error)

func NewRootHttpService_request_Results

func NewRootHttpService_request_Results(s *capnp.Segment) (HttpService_request_Results, error)

func ReadRootHttpService_request_Results

func ReadRootHttpService_request_Results(msg *capnp.Message) (HttpService_request_Results, error)

func (HttpService_request_Results) DecodeFromPtr

func (HttpService_request_Results) EncodeAsPtr

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

func (HttpService_request_Results) HasRequestBody

func (s HttpService_request_Results) HasRequestBody() bool

func (HttpService_request_Results) IsValid

func (s HttpService_request_Results) IsValid() bool

func (HttpService_request_Results) Message

func (HttpService_request_Results) RequestBody

func (HttpService_request_Results) Segment

func (HttpService_request_Results) SetRequestBody

func (HttpService_request_Results) String

func (HttpService_request_Results) ToPtr

type HttpService_request_Results_Future

type HttpService_request_Results_Future struct{ *capnp.Future }

HttpService_request_Results_Future is a wrapper for a HttpService_request_Results promised by a client call.

func (HttpService_request_Results_Future) RequestBody

func (HttpService_request_Results_Future) Struct

type HttpService_request_Results_List

type HttpService_request_Results_List = capnp.StructList[HttpService_request_Results]

HttpService_request_Results_List is a list of HttpService_request_Results.

func NewHttpService_request_Results_List

func NewHttpService_request_Results_List(s *capnp.Segment, sz int32) (HttpService_request_Results_List, error)

NewHttpService_request_Results creates a new list of HttpService_request_Results.

type HttpService_startRequest

type HttpService_startRequest struct {
	*server.Call
}

HttpService_startRequest holds the state for a server call to HttpService.startRequest. See server.Call for documentation.

func (HttpService_startRequest) AllocResults

AllocResults allocates the results struct.

func (HttpService_startRequest) Args

Args returns the call's arguments.

type HttpService_startRequest_Params

type HttpService_startRequest_Params capnp.Struct

func NewHttpService_startRequest_Params

func NewHttpService_startRequest_Params(s *capnp.Segment) (HttpService_startRequest_Params, error)

func NewRootHttpService_startRequest_Params

func NewRootHttpService_startRequest_Params(s *capnp.Segment) (HttpService_startRequest_Params, error)

func ReadRootHttpService_startRequest_Params

func ReadRootHttpService_startRequest_Params(msg *capnp.Message) (HttpService_startRequest_Params, error)

func (HttpService_startRequest_Params) Context

func (HttpService_startRequest_Params) DecodeFromPtr

func (HttpService_startRequest_Params) EncodeAsPtr

func (HttpService_startRequest_Params) HasContext

func (s HttpService_startRequest_Params) HasContext() bool

func (HttpService_startRequest_Params) HasRequest

func (s HttpService_startRequest_Params) HasRequest() bool

func (HttpService_startRequest_Params) IsValid

func (HttpService_startRequest_Params) Message

func (HttpService_startRequest_Params) NewRequest

NewRequest sets the request field to a newly allocated HttpRequest struct, preferring placement in s's segment.

func (HttpService_startRequest_Params) Request

func (HttpService_startRequest_Params) Segment

func (HttpService_startRequest_Params) SetContext

func (HttpService_startRequest_Params) SetRequest

func (HttpService_startRequest_Params) String

func (HttpService_startRequest_Params) ToPtr

type HttpService_startRequest_Params_Future

type HttpService_startRequest_Params_Future struct{ *capnp.Future }

HttpService_startRequest_Params_Future is a wrapper for a HttpService_startRequest_Params promised by a client call.

func (HttpService_startRequest_Params_Future) Context

func (HttpService_startRequest_Params_Future) Request

func (HttpService_startRequest_Params_Future) Struct

type HttpService_startRequest_Params_List

type HttpService_startRequest_Params_List = capnp.StructList[HttpService_startRequest_Params]

HttpService_startRequest_Params_List is a list of HttpService_startRequest_Params.

func NewHttpService_startRequest_Params_List

func NewHttpService_startRequest_Params_List(s *capnp.Segment, sz int32) (HttpService_startRequest_Params_List, error)

NewHttpService_startRequest_Params creates a new list of HttpService_startRequest_Params.

type HttpService_startRequest_Results

type HttpService_startRequest_Results capnp.Struct

func NewHttpService_startRequest_Results

func NewHttpService_startRequest_Results(s *capnp.Segment) (HttpService_startRequest_Results, error)

func NewRootHttpService_startRequest_Results

func NewRootHttpService_startRequest_Results(s *capnp.Segment) (HttpService_startRequest_Results, error)

func ReadRootHttpService_startRequest_Results

func ReadRootHttpService_startRequest_Results(msg *capnp.Message) (HttpService_startRequest_Results, error)

func (HttpService_startRequest_Results) Context

func (HttpService_startRequest_Results) DecodeFromPtr

func (HttpService_startRequest_Results) EncodeAsPtr

func (HttpService_startRequest_Results) HasContext

func (s HttpService_startRequest_Results) HasContext() bool

func (HttpService_startRequest_Results) HasRequestBody

func (s HttpService_startRequest_Results) HasRequestBody() bool

func (HttpService_startRequest_Results) IsValid

func (HttpService_startRequest_Results) Message

func (HttpService_startRequest_Results) RequestBody

func (HttpService_startRequest_Results) Segment

func (HttpService_startRequest_Results) SetContext

func (HttpService_startRequest_Results) SetRequestBody

func (HttpService_startRequest_Results) String

func (HttpService_startRequest_Results) ToPtr

type HttpService_startRequest_Results_Future

type HttpService_startRequest_Results_Future struct{ *capnp.Future }

HttpService_startRequest_Results_Future is a wrapper for a HttpService_startRequest_Results promised by a client call.

func (HttpService_startRequest_Results_Future) Context

func (HttpService_startRequest_Results_Future) RequestBody

func (HttpService_startRequest_Results_Future) Struct

type HttpService_startRequest_Results_List

type HttpService_startRequest_Results_List = capnp.StructList[HttpService_startRequest_Results]

HttpService_startRequest_Results_List is a list of HttpService_startRequest_Results.

func NewHttpService_startRequest_Results_List

func NewHttpService_startRequest_Results_List(s *capnp.Segment, sz int32) (HttpService_startRequest_Results_List, error)

NewHttpService_startRequest_Results creates a new list of HttpService_startRequest_Results.

type WebSocket

type WebSocket capnp.Client

func WebSocket_ServerToClient

func WebSocket_ServerToClient(s WebSocket_Server) WebSocket

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

func (WebSocket) AddRef

func (c WebSocket) AddRef() WebSocket

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

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

func (WebSocket) EncodeAsPtr

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

func (WebSocket) GetFlowLimiter

func (c WebSocket) GetFlowLimiter() fc.FlowLimiter

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

func (WebSocket) IsSame

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

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

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

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

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

func (WebSocket) SendData

func (c WebSocket) SendData(ctx context.Context, params func(WebSocket_sendData_Params) error) error

func (WebSocket) SendText

func (c WebSocket) SendText(ctx context.Context, params func(WebSocket_sendText_Params) error) error

func (WebSocket) SetFlowLimiter

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

func (c WebSocket) 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 (WebSocket) WaitStreaming

func (c WebSocket) WaitStreaming() error

type WebSocket_List

type WebSocket_List = capnp.CapList[WebSocket]

WebSocket_List is a list of WebSocket.

func NewWebSocket_List

func NewWebSocket_List(s *capnp.Segment, sz int32) (WebSocket_List, error)

NewWebSocket creates a new list of WebSocket.

type WebSocket_Server

type WebSocket_Server interface {
	SendText(context.Context, WebSocket_sendText) error

	SendData(context.Context, WebSocket_sendData) error

	Close(context.Context, WebSocket_close) error
}

A WebSocket_Server is a WebSocket with a local implementation.

type WebSocket_close

type WebSocket_close struct {
	*server.Call
}

WebSocket_close holds the state for a server call to WebSocket.close. See server.Call for documentation.

func (WebSocket_close) AllocResults

func (c WebSocket_close) AllocResults() (WebSocket_close_Results, error)

AllocResults allocates the results struct.

func (WebSocket_close) Args

Args returns the call's arguments.

type WebSocket_close_Params

type WebSocket_close_Params capnp.Struct

func NewRootWebSocket_close_Params

func NewRootWebSocket_close_Params(s *capnp.Segment) (WebSocket_close_Params, error)

func NewWebSocket_close_Params

func NewWebSocket_close_Params(s *capnp.Segment) (WebSocket_close_Params, error)

func ReadRootWebSocket_close_Params

func ReadRootWebSocket_close_Params(msg *capnp.Message) (WebSocket_close_Params, error)

func (WebSocket_close_Params) Code

func (s WebSocket_close_Params) Code() uint16

func (WebSocket_close_Params) DecodeFromPtr

func (WebSocket_close_Params) EncodeAsPtr

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

func (WebSocket_close_Params) HasReason

func (s WebSocket_close_Params) HasReason() bool

func (WebSocket_close_Params) IsValid

func (s WebSocket_close_Params) IsValid() bool

func (WebSocket_close_Params) Message

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

func (WebSocket_close_Params) Reason

func (s WebSocket_close_Params) Reason() (string, error)

func (WebSocket_close_Params) ReasonBytes

func (s WebSocket_close_Params) ReasonBytes() ([]byte, error)

func (WebSocket_close_Params) Segment

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

func (WebSocket_close_Params) SetCode

func (s WebSocket_close_Params) SetCode(v uint16)

func (WebSocket_close_Params) SetReason

func (s WebSocket_close_Params) SetReason(v string) error

func (WebSocket_close_Params) String

func (s WebSocket_close_Params) String() string

func (WebSocket_close_Params) ToPtr

func (s WebSocket_close_Params) ToPtr() capnp.Ptr

type WebSocket_close_Params_Future

type WebSocket_close_Params_Future struct{ *capnp.Future }

WebSocket_close_Params_Future is a wrapper for a WebSocket_close_Params promised by a client call.

func (WebSocket_close_Params_Future) Struct

type WebSocket_close_Params_List

type WebSocket_close_Params_List = capnp.StructList[WebSocket_close_Params]

WebSocket_close_Params_List is a list of WebSocket_close_Params.

func NewWebSocket_close_Params_List

func NewWebSocket_close_Params_List(s *capnp.Segment, sz int32) (WebSocket_close_Params_List, error)

NewWebSocket_close_Params creates a new list of WebSocket_close_Params.

type WebSocket_close_Results

type WebSocket_close_Results capnp.Struct

func NewRootWebSocket_close_Results

func NewRootWebSocket_close_Results(s *capnp.Segment) (WebSocket_close_Results, error)

func NewWebSocket_close_Results

func NewWebSocket_close_Results(s *capnp.Segment) (WebSocket_close_Results, error)

func ReadRootWebSocket_close_Results

func ReadRootWebSocket_close_Results(msg *capnp.Message) (WebSocket_close_Results, error)

func (WebSocket_close_Results) DecodeFromPtr

func (WebSocket_close_Results) EncodeAsPtr

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

func (WebSocket_close_Results) IsValid

func (s WebSocket_close_Results) IsValid() bool

func (WebSocket_close_Results) Message

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

func (WebSocket_close_Results) Segment

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

func (WebSocket_close_Results) String

func (s WebSocket_close_Results) String() string

func (WebSocket_close_Results) ToPtr

func (s WebSocket_close_Results) ToPtr() capnp.Ptr

type WebSocket_close_Results_Future

type WebSocket_close_Results_Future struct{ *capnp.Future }

WebSocket_close_Results_Future is a wrapper for a WebSocket_close_Results promised by a client call.

func (WebSocket_close_Results_Future) Struct

type WebSocket_close_Results_List

type WebSocket_close_Results_List = capnp.StructList[WebSocket_close_Results]

WebSocket_close_Results_List is a list of WebSocket_close_Results.

func NewWebSocket_close_Results_List

func NewWebSocket_close_Results_List(s *capnp.Segment, sz int32) (WebSocket_close_Results_List, error)

NewWebSocket_close_Results creates a new list of WebSocket_close_Results.

type WebSocket_sendData

type WebSocket_sendData struct {
	*server.Call
}

WebSocket_sendData holds the state for a server call to WebSocket.sendData. See server.Call for documentation.

func (WebSocket_sendData) AllocResults

func (c WebSocket_sendData) AllocResults() (stream.StreamResult, error)

AllocResults allocates the results struct.

func (WebSocket_sendData) Args

Args returns the call's arguments.

type WebSocket_sendData_Params

type WebSocket_sendData_Params capnp.Struct

func NewRootWebSocket_sendData_Params

func NewRootWebSocket_sendData_Params(s *capnp.Segment) (WebSocket_sendData_Params, error)

func NewWebSocket_sendData_Params

func NewWebSocket_sendData_Params(s *capnp.Segment) (WebSocket_sendData_Params, error)

func ReadRootWebSocket_sendData_Params

func ReadRootWebSocket_sendData_Params(msg *capnp.Message) (WebSocket_sendData_Params, error)

func (WebSocket_sendData_Params) Data

func (s WebSocket_sendData_Params) Data() ([]byte, error)

func (WebSocket_sendData_Params) DecodeFromPtr

func (WebSocket_sendData_Params) EncodeAsPtr

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

func (WebSocket_sendData_Params) HasData

func (s WebSocket_sendData_Params) HasData() bool

func (WebSocket_sendData_Params) IsValid

func (s WebSocket_sendData_Params) IsValid() bool

func (WebSocket_sendData_Params) Message

func (WebSocket_sendData_Params) Segment

func (WebSocket_sendData_Params) SetData

func (s WebSocket_sendData_Params) SetData(v []byte) error

func (WebSocket_sendData_Params) String

func (s WebSocket_sendData_Params) String() string

func (WebSocket_sendData_Params) ToPtr

type WebSocket_sendData_Params_Future

type WebSocket_sendData_Params_Future struct{ *capnp.Future }

WebSocket_sendData_Params_Future is a wrapper for a WebSocket_sendData_Params promised by a client call.

func (WebSocket_sendData_Params_Future) Struct

type WebSocket_sendData_Params_List

type WebSocket_sendData_Params_List = capnp.StructList[WebSocket_sendData_Params]

WebSocket_sendData_Params_List is a list of WebSocket_sendData_Params.

func NewWebSocket_sendData_Params_List

func NewWebSocket_sendData_Params_List(s *capnp.Segment, sz int32) (WebSocket_sendData_Params_List, error)

NewWebSocket_sendData_Params creates a new list of WebSocket_sendData_Params.

type WebSocket_sendText

type WebSocket_sendText struct {
	*server.Call
}

WebSocket_sendText holds the state for a server call to WebSocket.sendText. See server.Call for documentation.

func (WebSocket_sendText) AllocResults

func (c WebSocket_sendText) AllocResults() (stream.StreamResult, error)

AllocResults allocates the results struct.

func (WebSocket_sendText) Args

Args returns the call's arguments.

type WebSocket_sendText_Params

type WebSocket_sendText_Params capnp.Struct

func NewRootWebSocket_sendText_Params

func NewRootWebSocket_sendText_Params(s *capnp.Segment) (WebSocket_sendText_Params, error)

func NewWebSocket_sendText_Params

func NewWebSocket_sendText_Params(s *capnp.Segment) (WebSocket_sendText_Params, error)

func ReadRootWebSocket_sendText_Params

func ReadRootWebSocket_sendText_Params(msg *capnp.Message) (WebSocket_sendText_Params, error)

func (WebSocket_sendText_Params) DecodeFromPtr

func (WebSocket_sendText_Params) EncodeAsPtr

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

func (WebSocket_sendText_Params) HasText

func (s WebSocket_sendText_Params) HasText() bool

func (WebSocket_sendText_Params) IsValid

func (s WebSocket_sendText_Params) IsValid() bool

func (WebSocket_sendText_Params) Message

func (WebSocket_sendText_Params) Segment

func (WebSocket_sendText_Params) SetText

func (s WebSocket_sendText_Params) SetText(v string) error

func (WebSocket_sendText_Params) String

func (s WebSocket_sendText_Params) String() string

func (WebSocket_sendText_Params) Text

func (WebSocket_sendText_Params) TextBytes

func (s WebSocket_sendText_Params) TextBytes() ([]byte, error)

func (WebSocket_sendText_Params) ToPtr

type WebSocket_sendText_Params_Future

type WebSocket_sendText_Params_Future struct{ *capnp.Future }

WebSocket_sendText_Params_Future is a wrapper for a WebSocket_sendText_Params promised by a client call.

func (WebSocket_sendText_Params_Future) Struct

type WebSocket_sendText_Params_List

type WebSocket_sendText_Params_List = capnp.StructList[WebSocket_sendText_Params]

WebSocket_sendText_Params_List is a list of WebSocket_sendText_Params.

func NewWebSocket_sendText_Params_List

func NewWebSocket_sendText_Params_List(s *capnp.Segment, sz int32) (WebSocket_sendText_Params_List, error)

NewWebSocket_sendText_Params creates a new list of WebSocket_sendText_Params.

Jump to

Keyboard shortcuts

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