Documentation ¶
Index ¶
- Variables
- type Mapper
- func (m *Mapper) Call(receiver, method string, params reflect.Value) (reflect.Value, error)
- func (m *Mapper) IsDefined(receiver, method string) bool
- func (m *Mapper) Params(receiver, method string) (reflect.Value, error)
- func (m *Mapper) Register(name string, receiver any)
- func (m *Mapper) Result(receiver, method string) (reflect.Value, error)
- type Receiver
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrReceiverNotFound = errors.New("receiver not found") ErrMethodNotFound = errors.New("method not found") )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Register ¶
Register registers a service with a NATS subject. Many services can be registered to the same subject, all services will receive their copy of the message. If group is specified, only of services subscribed to the same subject with the same group nam will receive a message.
Click to show internal directories.
Click to hide internal directories.