kinesisconfigs

package
v0.0.0-...-7e90556 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicLoader

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

DynamicLoader fetches configs on an interval, with stats on the fetching process.

func NewDynamicLoader

func NewDynamicLoader(
	fetcher fetcher.ConfigFetcher,
	reloadTime,
	retryDelay time.Duration,
	stats reporter.StatsLogger,
	multee writer.SpadeWriterManager,
	kinesisWriterGenerator func(scoop_protocol.KinesisWriterConfig) (writer.SpadeWriter, error),
	staticConfigs []scoop_protocol.KinesisWriterConfig,
	commonFilters map[string]scoop_protocol.EventFilterFunc,
) (*DynamicLoader, error)

NewDynamicLoader returns a new DynamicLoader, performing the first fetch.

func (*DynamicLoader) Close

func (d *DynamicLoader) Close()

Close stops the DynamicLoader's fetching process.

func (*DynamicLoader) Crank

func (d *DynamicLoader) Crank()

Crank is a blocking function that refreshes the config on an interval.

Jump to

Keyboard shortcuts

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