Documentation
¶
Overview ¶
Package http contains the http transport for the orb client,
Index ¶
- func NewHTTP3Transport(logger log.Logger, cfg *orb.Config) (orb.TransportType, error)
- func NewHTTPSTransport(logger log.Logger, cfg *orb.Config) (orb.TransportType, error)
- func NewHTTPTransport(network string) func(logger log.Logger, cfg *orb.Config) (orb.TransportType, error)
- func NewTransport(name string, logger log.Logger, scheme string, network string, cfg *orb.Config, ...) (orb.TransportType, error)
- type Transport
- func (t *Transport) Name() string
- func (t *Transport) Request(ctx context.Context, infos client.RequestInfos, req any, result any, ...) error
- func (t *Transport) Start() error
- func (t *Transport) Stop(_ context.Context) error
- func (t *Transport) Stream(_ context.Context, _ client.RequestInfos, _ *client.CallOptions) (client.StreamIface[any, any], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTP3Transport ¶
NewHTTP3Transport creates a new https transport for the orb client. This transport is used for HTTP/3.
func NewHTTPSTransport ¶
NewHTTPSTransport creates a new https transport for the orb client. This transport is used for HTTPS/1.1.
func NewHTTPTransport ¶
func NewHTTPTransport(network string) func(logger log.Logger, cfg *orb.Config) (orb.TransportType, error)
NewHTTPTransport creates a new https transport for the orb client.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a go-orb/plugins/client/orb compatible transport.
func (*Transport) Request ¶
func (t *Transport) Request(ctx context.Context, infos client.RequestInfos, req any, result any, opts *client.CallOptions) error
Request does the actual rpc call to the server.
func (*Transport) Stream ¶
func (t *Transport) Stream(_ context.Context, _ client.RequestInfos, _ *client.CallOptions) (client.StreamIface[any, any], error)
Stream creates a bidirectional stream to the service endpoint. HTTP transport does not support streaming operations by default.
Click to show internal directories.
Click to hide internal directories.