ingester

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinator

type Coordinator struct {
	LastMsgID string
	Resume    bool
	File      *file.Opts
	Kafka     *kafka.Opts
	// contains filtered or unexported fields
}

Coordinator ingests an SSE stream from WMF and processes each event in turn

func (*Coordinator) Start

func (c *Coordinator) Start() (string, error)

Start begins consumption of the SSE stream If the current terminal is a TTY, it will output a progress spinner

func (*Coordinator) Stop

func (c *Coordinator) Stop()

Stop will stop the coordinator, close the connection and request all goroutines to exit It blocks until shutdown is complete

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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