config

package
v0.0.0-...-2e26f47 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 1 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 {
	Tor      TorConfig         `mapstructure:"tor"`
	Manual   map[string]string `mapstructure:"manual"`
	CacheTTL int               `mapstructure:"cachettl"`
	DnsTTL   int               `mapstructure:"dnsttl"`
}

func ReadConfig

func ReadConfig(path string) (*Config, error)

type TorConfig

type TorConfig struct {
	Address string `mapstructure:"address"`
	Port    string `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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