conf

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvConfigPath = "IPS_CONFIG_PATH"
	ConfigDirName = "ips"
	ConfigName    = "config"
	ConfigType    = "json"
)

Variables

View Source
var ConfigPath string

Functions

func PrepareDir

func PrepareDir(path string)

Types

type Config

type Config struct {
	IPv4Format string   `mapstructure:"ipv4_format"`
	IPv4File   string   `mapstructure:"ipv4_file"`
	IPv6Format string   `mapstructure:"ipv6_format"`
	IPv6File   string   `mapstructure:"ipv6_file"`
	Fields     []string `mapstructure:"fields"`
}
var Conf Config

Jump to

Keyboard shortcuts

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