Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type DispatcherOption ¶ added in v0.0.5
type DispatcherOption func(d Dispatcher)
func WithLogger ¶ added in v0.0.5
func WithLogger(l *zerolog.Logger) DispatcherOption
type LocalDispatcher ¶
type LocalDispatcher struct {
// contains filtered or unexported fields
}
func NewLocalDispatcher ¶
func NewLocalDispatcher(receiver receiver.Receiver, opts ...DispatcherOption) *LocalDispatcher
func (*LocalDispatcher) Dispatch ¶
func (l *LocalDispatcher) Dispatch(event string, data json.RawMessage) error
func (*LocalDispatcher) SetLogger ¶ added in v0.0.11
func (l *LocalDispatcher) SetLogger(logger *zerolog.Logger)
type NATSDispatcher ¶
type NATSDispatcher struct {
// contains filtered or unexported fields
}
func NewNATSDispatcher ¶
func NewNATSDispatcher(url string, natsOpts []nats.Option, opts ...DispatcherOption) (*NATSDispatcher, error)
func (*NATSDispatcher) Dispatch ¶
func (d *NATSDispatcher) Dispatch(event string, data json.RawMessage) error
func (*NATSDispatcher) SetLogger ¶ added in v0.0.11
func (d *NATSDispatcher) SetLogger(logger *zerolog.Logger)
type NOOPDispatcher ¶
type NOOPDispatcher struct {
// contains filtered or unexported fields
}
func NewNOOPDispatcher ¶
func NewNOOPDispatcher(opts ...DispatcherOption) *NOOPDispatcher
func (*NOOPDispatcher) Dispatch ¶
func (d *NOOPDispatcher) Dispatch(event string, data json.RawMessage) error
func (*NOOPDispatcher) SetLogger ¶ added in v0.0.11
func (d *NOOPDispatcher) SetLogger(logger *zerolog.Logger)
type RedisDispatcher ¶
type RedisDispatcher struct {
// contains filtered or unexported fields
}
func NewRedisDispatcher ¶
func NewRedisDispatcher(connectOpts *redis.Options, opts ...DispatcherOption) (*RedisDispatcher, error)
func (*RedisDispatcher) Dispatch ¶
func (d *RedisDispatcher) Dispatch(event string, data json.RawMessage) error
func (*RedisDispatcher) SetLogger ¶ added in v0.0.11
func (d *RedisDispatcher) SetLogger(logger *zerolog.Logger)
Click to show internal directories.
Click to hide internal directories.