Documentation
¶
Index ¶
- Variables
- type MQ
- type Option
- type Options
- type Topic
- func (t *Topic[T]) Consume(ctx context.Context, i []byte) error
- func (t *Topic[T]) GetOptions() *Options
- func (t *Topic[T]) LocalCall(ctx context.Context, i T) error
- func (t *Topic[T]) Name() string
- func (t *Topic[T]) Publish(ctx context.Context, i T) error
- func (t *Topic[T]) PublishFallsLocalCall(ctx context.Context, i T) error
- func (t *Topic[T]) SetMQ(mq *MQ)
- type TopicInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewMQ)
Functions ¶
This section is empty.
Types ¶
type MQ ¶
type MQ struct {
// contains filtered or unexported fields
}
func (*MQ) RegisterTopic ¶
func (a *MQ) RegisterTopic(topic TopicInterface) error
RegisterTopic register Topic to MQ If a message keep fail after retry, It will be sent to the PoisonQueue. PoisonQueue will retry messages in a very low rate.
type Option ¶ added in v0.1.0
type Option func(o *Options)
Option represents a store option function.
func WithConsumePoisoned ¶ added in v0.1.0
func WithConsumePoisoned() Option
Click to show internal directories.
Click to hide internal directories.