config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Socket string `yaml:"socket"`
}

Admin is the configuration for the Admin server.

type Config

type Config struct {
	Admin Admin `yaml:"admin"`
	Proxy Proxy `yaml:"proxy"`
	Envoy Envoy `yaml:"envoy"`

	SessionManagerServerWorkerServiceAddr string `yaml:"sessionManagerServerWorkerServiceAddr"`

	// HTTPPort is the port that the agent listens on for HTTP connections.
	HTTPPort int `yaml:"httpPort"`

	// ComponentStatusSender is the configuration for the component status sender.
	ComponentStatusSender status.Config `yaml:"componentStatusSender"`
}

Config is the configuration for the agent.

func Parse

func Parse(configPath string) (*Config, error)

Parse parses a configuration file at the given path and returns a Config struct.

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration.

type Envoy

type Envoy struct {
	Socket string `yaml:"socket"`
}

Envoy is the configuration for connecting to Envoy.

type Proxy

type Proxy struct {
	BaseURL string `yaml:"baseUrl"`
	HTTP    Tunnel `yaml:"http"`
	Upgrade Tunnel `yaml:"upgrade"`

	TLS TLS `yaml:"tls"`
}

Proxy is the configuration for connecting to the proxy.

type TLS

type TLS struct {
	Enable bool `yaml:"enable"`
}

TLS is the configuration for TLS.

type Tunnel

type Tunnel struct {
	Path        string        `yaml:"path"`
	PoolSize    int           `yaml:"poolSize"`
	DialTimeout time.Duration `yaml:"dialTimeout"`
}

Tunnel is the configuration for a tunnel.

Jump to

Keyboard shortcuts

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