Documentation
¶
Index ¶
- func NewLogger(l log.Logger) *logger
- type Job
- type Option
- func CloseTimeout(timeout time.Duration) Option
- func Logger(l log.Logger) Option
- func Middleware(mdw ...message.HandlerMiddleware) Option
- func Plugin(p ...message.RouterPlugin) Option
- func PublisherDecorator(d ...message.PublisherDecorator) Option
- func SubscriberDecorator(d ...message.SubscriberDecorator) Option
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func NewPubSubJob ¶
func NewSubJob ¶
func NewSubJob( name string, subscribeTopic string, subscriber message.Subscriber, handlerFunc func(msg *message.Message) error, middlewares ...message.HandlerMiddleware, ) *Job
func (Job) PublishTopic ¶
func (Job) SubscribeTopic ¶
func (Job) Subscriber ¶
func (j Job) Subscriber() message.Subscriber
type Option ¶
type Option func(o *options)
func CloseTimeout ¶
func Middleware ¶
func Middleware(mdw ...message.HandlerMiddleware) Option
func Plugin ¶
func Plugin(p ...message.RouterPlugin) Option
func PublisherDecorator ¶
func PublisherDecorator(d ...message.PublisherDecorator) Option
func SubscriberDecorator ¶
func SubscriberDecorator(d ...message.SubscriberDecorator) Option
Click to show internal directories.
Click to hide internal directories.