executor

package
v0.0.0-...-077b43f Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LagWarnThreshold   = 3  // in sec
	HandlerConcurrentN = 10 // FIXME breaks the delivery order guarantee
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JobExecutor

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

JobExecutor polls a single JobQueue and handle each Job.

func NewJobExecutor

func NewJobExecutor(parentId, cluster, topic string, mc *mysql.MysqlCluster,
	stopper <-chan struct{}, auditor log.Logger) *JobExecutor

func (*JobExecutor) Ident

func (this *JobExecutor) Ident() string

func (*JobExecutor) Run

func (this *JobExecutor) Run()

poll mysql for due jobs and send to kafka.

type WebhookExecutor

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

func NewWebhookExecutor

func NewWebhookExecutor(parentId, cluster, topic string, endpoints []string,
	stopper <-chan struct{}, auditor log.Logger) *WebhookExecutor

func (*WebhookExecutor) Run

func (this *WebhookExecutor) Run()

Jump to

Keyboard shortcuts

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