file

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.53.0

type Config struct {
	helper.InputConfig  `mapstructure:",squash"`
	fileconsumer.Config `mapstructure:",squash"`
}

Config is the configuration of a file input operator

func NewConfig added in v0.53.0

func NewConfig() *Config

NewConfig creates a new input config with default values

func NewConfigWithID added in v0.59.0

func NewConfigWithID(operatorID string) *Config

NewConfigWithID creates a new input config with default values

func (Config) Build added in v0.53.0

func (c Config) Build(logger *zap.SugaredLogger) (operator.Operator, error)

Build will build a file input operator from the supplied configuration

type Input added in v0.53.0

type Input struct {
	helper.InputOperator
	// contains filtered or unexported fields
}

Input is an operator that monitors files for entries

func (*Input) Start added in v0.53.0

func (f *Input) Start(persister operator.Persister) error

Start will start the file monitoring process

func (*Input) Stop added in v0.53.0

func (f *Input) Stop() error

Stop will stop the file monitoring process

Jump to

Keyboard shortcuts

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