Documentation ¶
Index ¶
- func RegisterHandler[RequestType proto.Message, ResponseType proto.Message](s *RPCServer, rpc string, topic []string, ...) error
- func RegisterStreamHandler[RequestType proto.Message, ResponseType proto.Message](s *RPCServer, rpc string, topic []string, ...) error
- type AffinityFunc
- type RPCServer
- type Registerer
- type RegistererSlice
- type StreamAffinityFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandler ¶
func RegisterStreamHandler ¶
Types ¶
type AffinityFunc ¶
type RPCServer ¶
type RPCServer struct { *info.ServiceDefinition psrpc.ServerOpts // contains filtered or unexported fields }
func NewRPCServer ¶
func NewRPCServer(sd *info.ServiceDefinition, b bus.MessageBus, opts ...psrpc.ServerOption) *RPCServer
func (*RPCServer) DeregisterHandler ¶
type Registerer ¶
type Registerer struct {
// contains filtered or unexported fields
}
func NewRegisterer ¶
func NewRegisterer(register, deregister any) Registerer
type RegistererSlice ¶
type RegistererSlice []Registerer
func (RegistererSlice) Deregister ¶
func (rs RegistererSlice) Deregister(params ...any)
func (RegistererSlice) Register ¶
func (rs RegistererSlice) Register(params ...any) error
type StreamAffinityFunc ¶
Click to show internal directories.
Click to hide internal directories.