config

package
v0.0.0-...-4c7bb82 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	App         = "ztunnel"
	DefaultPath = App + ".yml"

	HeaderAPIToken = "X-Api-Token"
)

Variables

View Source
var (
	DefaultDir = path.Join(fs.UserConfigDir(), App)
)

Functions

func Path

func Path(filename string) string

Types

type Config

type Config struct {
	Address string            `yaml:"address"`
	Servers map[string]string `yaml:"servers"`
}

func Load

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

Jump to

Keyboard shortcuts

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