proxy

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 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"`
	Initd         *InitdAPIConfig `toml:"initd"`
	TLS           TLS             `toml:"tls"`
}

type InitdAPIConfig added in v0.4.0

type InitdAPIConfig struct {
	Domain string `toml:"domain"`
	Authz  *struct {
		Endpoint string `toml:"endpoint_url"`
	}
	TLS TLS `toml:"tls"`
}

type LocalConfig

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

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