Documentation
¶
Index ¶
- Variables
- type Config
- type Connector
- func (conn *Connector) AddHandler(name mt.ServiceName, handler mt.HandlerFunc)
- func (conn *Connector) Call(name mt.ServiceName, req mt.Request, rep mt.ReplyFunc) error
- func (conn *Connector) Cast(name mt.ServiceName, req mt.Request) error
- func (conn *Connector) ConnectAndServe() error
- func (conn *Connector) HealthCheck() bool
- func (conn *Connector) Shutdown() error
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnectorNotReady = errors.New("connector isn't ready")
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
MT mt.MassTransport
daemon.WatcherConfigFunc
daemon.HealthCheckFunc
daemon.ShutdownFunc
// contains filtered or unexported fields
}
func (*Connector) AddHandler ¶
func (conn *Connector) AddHandler(name mt.ServiceName, handler mt.HandlerFunc)
func (*Connector) ConnectAndServe ¶
func (*Connector) HealthCheck ¶
type Option ¶
type Option func(*Connector)
func WithHandler ¶
func WithHandler(serviceName string, handler mt.HandlerFunc) Option
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.