conf

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 3 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 {
	Logger LoggerConfig `json:"logger" yaml:"logger"`

	// options for both client & server
	Tunnel   string `json:"tunnel" yaml:"tunnel"`
	Password string `json:"password" yaml:"password"`
	Timeout  int    `json:"timeout" yaml:"timeout"`

	// server options
	CertFile string `json:"certFile" yaml:"certFile"`
	KeyFile  string `json:"keyFile" yaml:"keyFile"`

	// client options
	ConnectTimeout     int    `json:"connectTimeout" yaml:"connectTimeout"`
	LocalAddress       string `json:"localAddress" yaml:"localAddress"`
	InsecureSkipVerify bool   `json:"insecureSkipVerify" yaml:"insecureSkipVerify"`
}

func Get

func Get() *Config

func (*Config) Default added in v1.0.0

func (conf *Config) Default()

type LoggerConfig added in v0.1.7

type LoggerConfig struct {
	Level  string           `json:"level" yaml:"level"`
	Format logger.LogFormat `json:"format" yaml:"format"`
}

Jump to

Keyboard shortcuts

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