supervisor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Supervisor

type Supervisor struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewSupervisor

func NewSupervisor(logger *log.Entry, sqs sqsiface.SQSAPI, httpClient httpClient, config WorkerConfig) *Supervisor

func (*Supervisor) Shutdown

func (s *Supervisor) Shutdown()

func (*Supervisor) Start

func (s *Supervisor) Start(numWorkers int)

func (*Supervisor) Wait

func (s *Supervisor) Wait()

type WorkerConfig

type WorkerConfig struct {
	QueueURL         string
	QueueMaxMessages int
	QueueWaitTime    int

	HTTPURL         string
	HTTPContentType string

	HTTPHMACHeader string
	HMACSecretKey  []byte
}

Jump to

Keyboard shortcuts

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