file

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoSrc is returned when an Aggregator is created without a source directory
	ErrNoSrc = fmt.Errorf("No source directory provided")
)

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {
	File *Opts

	Redis *util.RedisOpts
	// contains filtered or unexported fields
}

Aggregator is an aggregator implementation that reads from the filesystem

func NewAggregator

func NewAggregator(redisOpts *util.RedisOpts, opts *Opts) (*Aggregator, error)

NewAggregator returns a Aggregator initialized with the source path provided

func (*Aggregator) Start

func (a *Aggregator) Start() error

Start starts up the aggregation server

func (*Aggregator) Stop

func (a *Aggregator) Stop()

Stop shuts down the aggregation server

type Opts

type Opts struct {
	Source string
}

Opts hold config options for the file publisher

Jump to

Keyboard shortcuts

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