config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 2 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 {
	LoggerLever    string `long:"logger-level" env:"LOGGER_LEVEL" description:"Logger level" default:"info"`
	HeuristicsPath string `long:"heuristics-path" env:"HEURISTICS_PATH" description:"Path to heuristics file" default:"heuristics.toml"`

	APIToken                 string `long:"api-token:" env:"API_TOKEN" description:"VK API token" required:"true"`
	CallbackConfirmationCode string `` /* 131-byte string literal not displayed */
	HTTPAddr                 string `long:"http-addr" env:"HTTP_ADDR" description:"HTTP server address" default:":8080"`
}

Config is a banhammer config.

func ParseConfig

func ParseConfig() (*Config, error)

ParseConfig parses banhammer config.

Jump to

Keyboard shortcuts

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