conf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 7 Imported by: 0

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