Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_multiple1_proto protoreflect.FileDescriptor
View Source
var File_multiple2_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Msg1 ¶
type Msg1 struct {
// contains filtered or unexported fields
}
func (*Msg1) Descriptor
deprecated
func (*Msg1) ProtoMessage ¶
func (*Msg1) ProtoMessage()
func (*Msg1) ProtoReflect ¶
func (x *Msg1) ProtoReflect() protoreflect.Message
type Msg2 ¶
type Msg2 struct {
// contains filtered or unexported fields
}
func (*Msg2) Descriptor
deprecated
func (*Msg2) ProtoMessage ¶
func (*Msg2) ProtoMessage()
func (*Msg2) ProtoReflect ¶
func (x *Msg2) ProtoReflect() protoreflect.Message
type Svc1Client ¶
func NewSvc1Client ¶
func NewSvc1Client(clientID string, bus psrpc.MessageBus, opts ...psrpc.ClientOpt) (Svc1Client, error)
NewSvc1Client creates a psrpc client that implements the Svc1Client interface.
type Svc1Server ¶
type Svc1Server interface {
}
func NewSvc1Server ¶
func NewSvc1Server(serverID string, svc Svc1ServerImpl, bus psrpc.MessageBus, opts ...psrpc.ServerOpt) (Svc1Server, error)
NewSvc1Server builds a RPCServer that can be used to handle requests that are routed to the right method in the provided svc implementation.
type Svc2Client ¶
type Svc2Client interface {
Send(context.Context, *Msg2, ...psrpc.RequestOpt) (*Msg2, error)
SamePackageProtoImport(context.Context, *Msg1, ...psrpc.RequestOpt) (*Msg1, 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.
Click to show internal directories.
Click to hide internal directories.