config

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientTLSConfig

type ClientTLSConfig struct {
	AllowUnencrypted bool
	TrySSL           bool
	BaseTLSConfig    tls.Config
}

type Config

type Config struct {
	Bind      string
	HostRegex *regexp.Regexp
	Client    ClientTLSConfig
	Server    ServerTLSConfig
}

func FromFile

func FromFile(f *file.Config) (*Config, error)

type ServerTLSConfig

type ServerTLSConfig struct {
	AllowUnencrypted bool
	BaseTLSConfig    *tls.Config
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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