proxy

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: Apache-2.0 Imports: 5 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 {
	Corrosion config.CorrosionConfig `toml:"corrosion"`
	Edge      EdgeConfig             `toml:"edge"`
	Local     LocalConfig            `toml:"local"`
}

func ReadConfigFile

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

type EdgeConfig

type EdgeConfig struct {
	DefaultDomain   string                 `toml:"default_domain"`
	HttpAddr        string                 `toml:"http_addr"`
	HttpsAddr       string                 `toml:"https_addr"`
	MachineGateways *MachineGatewaysConfig `toml:"machine_gateways"`
	TLS             TLS                    `toml:"tls"`
}

type LocalConfig

type LocalConfig struct {
	Address string `toml:"address"`
	NodeId  string `toml:"node_id"`
}

type MachineGatewaysConfig added in v0.5.0

type MachineGatewaysConfig struct {
	Domain     string `toml:"domain"`
	InitdAuthz *struct {
		Endpoint string `toml:"endpoint_url"`
	} `toml:"initd_authz"`
	TLS TLS `toml:"tls"`
}

type Mode

type Mode string
const (
	Edge  Mode = "edge"
	Local Mode = "local"
)

type TLS

type TLS struct {
	CertFile string `toml:"cert_file"`
	KeyFile  string `toml:"key_file"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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