Documentation ¶
Index ¶
- func NewRegisteredTask() *registeredTask
- func SetRetry(retry bool) options.Option
- func SetRetryFn(fn func(ctx context.Context)) options.Option
- type Broker
- func (b *Broker) GetRetry() bool
- func (b *Broker) GetRetryCtx() context.Context
- func (b *Broker) GetRetryFn() func(ctx context.Context)
- func (b *Broker) GetStopCtx() context.Context
- func (r Broker) IsRegister(taskName string) bool
- func (r Broker) Quit(taskName string)
- func (r Broker) Register(taskName string)
- func (r Broker) RegisterList(taskNameList ...string)
- func (b *Broker) StopConsuming()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker Broker
func (*Broker) GetRetryCtx ¶
func (*Broker) GetRetryFn ¶
func (*Broker) GetStopCtx ¶
func (*Broker) StopConsuming ¶
func (b *Broker) StopConsuming()
Click to show internal directories.
Click to hide internal directories.