Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_importer_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Svc2Client ¶
type Svc2Client interface {
Send(context.Context, *psrpc_internal_test_importable.Msg, ...psrpc.RequestOpt) (*psrpc_internal_test_importable.Msg, error)
}
func NewSvc2Client ¶
func NewSvc2Client(clientID string, bus psrpc.MessageBus, opts ...psrpc.ClientOpt) (Svc2Client, error)
NewSvc2Client creates a psrpc client that implements the Svc2Client interface.
type Svc2Server ¶
type Svc2Server interface { }
func NewSvc2Server ¶
func NewSvc2Server(serverID string, svc Svc2ServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOpt) (Svc2Server, error)
NewSvc2Server builds a RPCServer that can be used to handle requests that are routed to the right method in the provided svc implementation.
type Svc2ServerImpl ¶
type Svc2ServerImpl interface {
Send(context.Context, *psrpc_internal_test_importable.Msg) (*psrpc_internal_test_importable.Msg, error)
}
Click to show internal directories.
Click to hide internal directories.