Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeEvent ¶ added in v0.1.1
func Validations ¶ added in v0.1.2
func Validations() map[string]validation.ValidationFunc
Types ¶
type BasicHandler ¶
type BasicHandler struct {
// contains filtered or unexported fields
}
func (*BasicHandler) MsgReceived ¶
func (b *BasicHandler) MsgReceived(ctx context.Context, event contract.Message, ack func())
func (*BasicHandler) Register ¶ added in v0.1.7
func (b *BasicHandler) Register(event string, handler domain.EventHandlerFunc)
type MessagePublishedMetric ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
type Subscriber ¶
type Subscriber struct {
Validator *validation.Validator
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(validator *validation.Validator, serviceName, hostName string, rdb *redis.Client) *Subscriber
func (*Subscriber) DecodeHeader ¶ added in v0.1.6
func (*Subscriber) Subscribe ¶
func (s *Subscriber) Subscribe(stream string) *BasicHandler
Subscribe registers a handler for a given stream (channel).
Click to show internal directories.
Click to hide internal directories.