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: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateConsumer

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

StateConsumer consumed states messages from Kafka to maintain the state database.

func NewStateConsumer

func NewStateConsumer() (*StateConsumer, error)

NewStateConsumer returns a new state consumer.

func (*StateConsumer) Close

func (sc *StateConsumer) Close() error

Close the consumer.

type TaskConsumer

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

TaskConsumer consumed tasks messages from a Kafka topic to maintain the tasks database.

func NewTaskConsumer

func NewTaskConsumer() (*TaskConsumer, error)

NewTaskConsumer returns a new task consumer.

func (*TaskConsumer) Close

func (tc *TaskConsumer) Close() error

Close the consumer.

Jump to

Keyboard shortcuts

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