conf

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateOptions

func PopulateOptions(f *FlagOptions)

Types

type Config

type Config struct {
	Settings YamlConfig
	FilePath string
}

func (*Config) Load

func (c *Config) Load() error

type FlagOptions

type FlagOptions struct {
	AuthToken  string
	Filter     filter.Filter
	ConfigFile string
	Debug      bool
}

type YamlConfig

type YamlConfig struct {
	Destination   string
	LogLevel      string `bool:"log-level"`
	Elasticsearch struct {
		Uri          string
		Username     string
		Password     string
		UseZincAwsS3 bool `yaml:"use-zinc-aws-s3"`
		NoDuplicates bool `yaml:"no-duplicates"`
	}

	Github struct {
		Token string
	}

	Script struct {
		Path       string
		MaxWorkers int    `yaml:"max-workers"`
		LogFile    string `yaml:"log-file"`
	}

	Slack struct {
		Token     string
		ChannelID string `yaml:"channel-id"`
	}

	Truffle struct {
		Path        string
		MaxWorkers  int    `yaml:"max-workers"`
		LogFile     string `yaml:"log-file"`
		GitHubToken string `yaml:"github-token"`
		Ignore      []string
	}
	Database struct {
		Engine string
		Dsn    string
		Path   string
	}
}

Jump to

Keyboard shortcuts

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