Documentation
¶
Overview ¶
Package memory implements a go-orb/plugins/client/orb compatible memory transport.
Index ¶
- Constants
- func NewTransport(logger log.Logger, _ *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(ctx context.Context, infos client.RequestInfos, opts *client.CallOptions) (client.StreamIface[any, any], error)
Constants ¶
View Source
const Name = "memory"
Name is the name of this transport.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
NewTransport creates a Transport.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a go-orb/plugins/client/orb compatible memory 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 request to the server.
func (*Transport) Stream ¶
func (t *Transport) Stream( ctx context.Context, infos client.RequestInfos, opts *client.CallOptions, ) (client.StreamIface[any, any], error)
Stream opens a bidirectional stream to the memory server.
Click to show internal directories.
Click to hide internal directories.