config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log struct {
		Level string `yaml:"level" env:"LOG_LEVEL"`
	} `yaml:"log"`

	Domains struct {
		Whitelist    []string `yaml:"whitelist" env:"DOMAIN_WHITELIST" valid:"minstringlength(3)"`
		WatchList    []string `yaml:"watchlist" env:"DOMAIN_WATCHLIST"`
		CreatedSince string   `yaml:"created_since" env:"DOMAIN_CREATED_SINCE"`
	} `yaml:"domains"`

	Slack struct {
		Webhook string `yaml:"webhook" env:"SLACK_WEBHOOK"`
	} `yaml:"slack"`
}

func (*Config) Load

func (c *Config) Load(path string) error

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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