topics

package
v0.0.0-...-e0ce755 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KafkaURL, _ = os.LookupEnv("KAFKA_BOOTSTRAP_SERVERS")

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Kadmin    *kafka.AdminClient
	Batch     Topic
	Extract   Topic
	Transform Topic
	Load      Topic
}

func NewController

func NewController() Controller

func (Controller) Create

func (ctl Controller) Create(batchID string) error

Create creates topics in Kafka for the current batch

func (Controller) Delete

func (ctl Controller) Delete(batchID string) error

type Topic

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

func New

func New(title string) Topic

func (Topic) GetName

func (t Topic) GetName(batchID string) string

func (Topic) GetRegex

func (t Topic) GetRegex() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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