consumers

package
v0.0.0-...-52789aa Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: BSD-3-Clause Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobConsumer

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

JobConsumer consumed jobs messages from a Kafka topic and send them as HTTP POST request.

func NewJobConsumer

func NewJobConsumer() (*JobConsumer, error)

NewJobConsumer returns a new job consumer.

func (*JobConsumer) Close

func (jc *JobConsumer) Close() error

Close the consumer.

func (*JobConsumer) Worker

func (jc *JobConsumer) Worker(id int)

Worker is the main goroutine that is calling handleMsg

Jump to

Keyboard shortcuts

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