file

package
v0.0.0-...-1d7380e Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfigPath

func SetConfigPath(path string)

Types

type ClientConfig

type ClientConfig struct {
	Cert             string `mapstructure:"cert,omitempty"`
	Key              string `mapstructure:"key,omitempty"`
	CA               string `mapstructure:"ca,omitempty"`
	SkipVerifyCA     bool   `mapstructure:"skipverify,omitempty"`
	AllowUnencrypted bool   `mapstructure:"allowunencrypted,omitempty"`
	TrySSL           bool   `mapstructure:"tryssl"`
}

type Config

type Config struct {
	Bind        string       `mapstructure:"bind"`
	Server      ServerConfig `mapstructure:"server"`
	Client      ClientConfig `mapstructure:"client"`
	HostRegex   string       `mapstructure:"hostregex"`
	RedisServer string       `mapstructure:"redisserver"`
}

func ReadConfig

func ReadConfig() (*Config, error)

type ServerConfig

type ServerConfig struct {
	Cert             string `mapstructure:"cert,omitempty"`
	Key              string `mapstructure:"key,omitempty"`
	CA               string `mapstructure:"ca,omitempty"`
	AllowUnencrypted bool   `mapstructure:"allowunencrypted,omitempty"`
}

Jump to

Keyboard shortcuts

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