protod

package
v0.0.0-...-20904cb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *util.Config, logger *log.Logger) ([]services.Service, error)

Types

type Admin

type Admin struct {
	AccessLogPath string  `yaml:"access_log_path"`
	Adress        *Adress `yaml:"address"`
}

Admin interface config

type Adress

type Adress struct {
	SocketAdress *SocketAdress `yaml:"socket_address"`
}

Adress is the TCP address that the administration server will listen on.

type ConfigSource

type ConfigSource struct {
	Path string `yaml:"path"`
}

ConfigSource for each xDS API source

type DynamicResources

type DynamicResources struct {
	CDSConfig *ConfigSource `yaml:"cds_config"`
	LDSConfig *ConfigSource `yaml:"lds_config"`
}

DynamicResources specify where to load dynamic configuration from.

type EnvoyConfig

type EnvoyConfig struct {
	Node             *Node             `yaml:"node"`
	DynamicResources *DynamicResources `yaml:"dynamic_resources"`
	Admin            *Admin            `yaml:"admin"`
}

Configuration base struct

func GenerateEnvoyConfig

func GenerateEnvoyConfig() *EnvoyConfig

GenerateEnvoyConfig from CLI flags

type Node

type Node struct {
	Cluster string `yaml:"cluster"`
	ID      string `yaml:"id"`
}

Node is used for instance identification purposes

type ProtoD

type ProtoD struct {
	// contains filtered or unexported fields
}

func (*ProtoD) GetDynamicConfig

func (p *ProtoD) GetDynamicConfig() error

GetDynamicConfig gets all the configs from the control plane

type SocketAdress

type SocketAdress struct {
	Adress    string `yaml:"address"`
	PortValue int    `yaml:"port_value"`
}

SocketAdress config about the socket

Jump to

Keyboard shortcuts

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