Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
ClientID string
Nats f3nats.NatsConn
Redis redis.Conn
PreRun []func(*Service, *Config) error
PostRun []func(*Service)
Handlers map[models.EventType]MsgHandler
// contains filtered or unexported fields
}
func NewService ¶
func NewService(clientID string, handlers ...map[models.EventType]MsgHandler) *Service
func (*Service) ReplyWithError ¶
ReplyWithError publish the error to the reply channel and returns the wrapped error.
Click to show internal directories.
Click to hide internal directories.