Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_x_x_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Svc1Client ¶
type Svc1Client interface {
Send(context.Context, *psrpc_internal_test_importmapping_y.MsgY, ...psrpc.RequestOption) (*psrpc_internal_test_importmapping_y.MsgY, error)
}
func NewSvc1Client ¶
func NewSvc1Client(clientID string, bus psrpc.MessageBus, opts ...psrpc.ClientOption) (Svc1Client, error)
NewSvc1Client creates a psrpc client that implements the Svc1Client interface.
type Svc1Server ¶
type Svc1Server interface {
// Close and wait for pending RPCs to complete
Shutdown()
// Close immediately, without waiting for pending RPCs
Kill()
}
func NewSvc1Server ¶
func NewSvc1Server(serverID string, svc Svc1ServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOption) (Svc1Server, error)
NewSvc1Server builds a RPCServer that will route requests to the corresponding method in the provided svc implementation.
type Svc1ServerImpl ¶
type Svc1ServerImpl interface {
Send(context.Context, *psrpc_internal_test_importmapping_y.MsgY) (*psrpc_internal_test_importmapping_y.MsgY, error)
}
Click to show internal directories.
Click to hide internal directories.