worker

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(brokers []disq.Broker) *Worker

func (*Worker) AddMany

func (w *Worker) AddMany(ctx context.Context, brokers []disq.Broker) error

func (*Worker) AddOne

func (w *Worker) AddOne(ctx context.Context, broker disq.Broker) error

func (*Worker) Contains

func (w *Worker) Contains(name string) bool

func (*Worker) DeleteMany

func (w *Worker) DeleteMany(names []string) error

func (*Worker) DeleteOne

func (w *Worker) DeleteOne(name string) error

func (*Worker) GetAllStats

func (w *Worker) GetAllStats() map[string]*disq.Stats

func (*Worker) GetOneStat

func (w *Worker) GetOneStat(name string) (*disq.Stats, error)

func (*Worker) LoadAll

func (w *Worker) LoadAll() map[string]disq.Broker

func (*Worker) LoadOne

func (w *Worker) LoadOne(name string) (disq.Broker, error)

func (*Worker) Name

func (w *Worker) Name() string

func (*Worker) SetName

func (w *Worker) SetName(name string)

func (*Worker) StartAll

func (w *Worker) StartAll(ctx context.Context)

func (*Worker) StartOne

func (w *Worker) StartOne(ctx context.Context, name string) error

func (*Worker) StopAll

func (w *Worker) StopAll() error

func (*Worker) StopOne

func (w *Worker) StopOne(name string) error

func (*Worker) UpdateMany

func (w *Worker) UpdateMany(ctx context.Context, brokers []disq.Broker) error

func (*Worker) UpdateOne

func (w *Worker) UpdateOne(ctx context.Context, broker disq.Broker) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL