configs

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigHandler added in v1.0.7

func NewConfigHandler(file string) config.ConfigHandler

Types

type Config

type Config struct {
	config.ConfigHandler `json:"-"`
	WebVirtualHosts      []*hosts.WebVirtualHost      `json:"web_virtual_hosts"`
	SshVirtualHosts      []*hosts.SshVirtualHost      `json:"ssh_virtual_hosts"`
	GrpcVirtualHosts     []*hosts.GrpcVirtualHost     `json:"grpc_virtual_hosts"`
	GrpcJsonVirtualHosts []*hosts.GrpcJsonVirtualHost `json:"grpc_json_virtual_hosts"`
	GrpcWebVirtualHosts  []*hosts.GrpcWebVirtualHost  `json:"grpc_web_virtual_hosts"`
	DefaultHost          string                       `json:"default_host"`
	ReverseProxyPort     string                       `json:"reverse_proxy_port"`
	LogConsoleLevel      logs.LogLevel                `json:"log_console_level"`
	LogFileLevel         logs.LogLevel                `json:"log_file_level"`
	LogsDir              string                       `json:"logs_dir"`
}

A Config structure is used to configure multiple virtual hosts for the reverse proxy, in addition to the various configuration options for the reverse proxy.

func NewConfig added in v1.0.7

func NewConfig(configHandler config.ConfigHandler, defaultHost string, reverseProxyPort string, logConsoleLevel logs.LogLevel, logFileLevel logs.LogLevel, logsDir string) *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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