worker

package
v0.0.0-...-9581e64 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsumer

func NewConsumer(config *ConsumerConfig) (*nsqConsumer, error)

Types

type CheckWorker

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

func NewCheckWorker

func NewCheckWorker(db *sqlx.DB, rStore results.Store, result *schema.CheckResult) *CheckWorker

func (*CheckWorker) Context

func (w *CheckWorker) Context() context.Context

func (*CheckWorker) Execute

func (w *CheckWorker) Execute() (interface{}, error)

type ConsumerConfig

type ConsumerConfig struct {
	Topic            string
	Channel          string
	LookupdAddresses []string
	NSQConfig        *nsq.Config
	HandlerCount     int
}

Jump to

Keyboard shortcuts

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