config

package
v0.0.0-...-7c0796b Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 9 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 {
	Addr                      string `json:"address"`
	IsGzip                    bool
	ReportInterval            int `json:"report_interval"`
	PollInterval              int `json:"poll_interval"`
	IsBatch                   bool
	PayloadSignatureKey       string
	SimultaneousRequestsLimit int
	PublicKeyFilePath         string `json:"crypto_key"`
}

func New

func New() *Config

New gets config from these places, each overwriting the previous one - config file (path taken from CONFIG env var or -config flag) - cli flags - env vars

Jump to

Keyboard shortcuts

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