envoy

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 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 Config

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

Config wraps the Envoy config_dump and exposes methods to extract data from it.

func LoadConfig

func LoadConfig(configBytes []byte) (*Config, error)

LoadConfig unmarshals bytes into a Config

func RetrieveConfig

func RetrieveConfig(envoyAdminURL string) (*Config, error)

RetrieveConfig fetches a Config from a local envoy service.

func (*Config) DiscoveryAddress

func (ec *Config) DiscoveryAddress() (string, error)

DiscoveryAddress extracts the discoveryAddress property from the config_dump.

Jump to

Keyboard shortcuts

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