config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Interval:    60 * time.Second,
	BucketId:    "",
	JsonKeyFile: "",
	Delete:      false,
	Match:       "*",
	Exclude:     "",
	MetadataKey: "x-goog-meta-gcsbeat",
	Codec:       "text",
	UnpackGzip:  false,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Interval        time.Duration `config:"interval"`
	BucketId        string        `config:"bucket_id" validate:"required"`
	JsonKeyFile     string        `config:"json_key_file"`
	Delete          bool          `config:"delete"`
	Match           string        `config:"file_matches"`
	Exclude         string        `config:"file_exclude"`
	MetadataKey     string        `config:"metadata_key"`
	Codec           string        `config:"codec"`
	UnpackGzip      bool          `config:"unpack_gzip"`
	ProcessedDbPath string        `config:"processed_db_path"`
}

func GetAndValidateConfig

func GetAndValidateConfig(cfg *common.Config) (*Config, error)

Jump to

Keyboard shortcuts

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