bootstrap

package
v0.0.0-...-dae121c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapParamsConfig

type BootstrapParamsConfig struct {
	config.BaseConfig

	// Address of Envoy Admin
	AdminAddress string `json:"adminAddress" envconfig:"DUBBO_BOOTSTRAP_SERVER_PARAMS_ADMIN_ADDRESS"`
	// Port of Envoy Admin
	AdminPort uint32 `json:"adminPort" envconfig:"DUBBO_BOOTSTRAP_SERVER_PARAMS_ADMIN_PORT"`
	// Path to access log file of Envoy Admin
	AdminAccessLogPath string `json:"adminAccessLogPath" envconfig:"DUBBO_BOOTSTRAP_SERVER_PARAMS_ADMIN_ACCESS_LOG_PATH"`
	// Host of XDS Server. By default it is the same host as the one used by dubbo-dp to connect to the control plane
	XdsHost string `json:"xdsHost" envconfig:"DUBBO_BOOTSTRAP_SERVER_PARAMS_XDS_HOST"`
	// Port of XDS Server. By default it is autoconfigured from DUBBo_XDS_SERVER_GRPC_PORT
	XdsPort uint32 `json:"xdsPort" envconfig:"DUBBO_BOOTSTRAP_SERVER_PARAMS_XDS_PORT"`
	// Connection timeout to the XDS Server
	XdsConnectTimeout config_types.Duration `json:"xdsConnectTimeout" envconfig:"DUBBO_BOOTSTRAP_SERVER_PARAMS_XDS_CONNECT_TIMEOUT"`
	// Path to the template of Corefile for data planes to use
	CorefileTemplatePath string `json:"corefileTemplatePath" envconfig:"DUBBO_BOOTSTRAP_SERVER_PARAMS_COREFILE_TEMPLATE_PATH"`
}

func DefaultBootstrapParamsConfig

func DefaultBootstrapParamsConfig() *BootstrapParamsConfig

func (*BootstrapParamsConfig) Validate

func (b *BootstrapParamsConfig) Validate() error

type BootstrapServerConfig

type BootstrapServerConfig struct {
	// Parameters of bootstrap configuration
	Params *BootstrapParamsConfig `json:"params"`
}

func DefaultBootstrapServerConfig

func DefaultBootstrapServerConfig() *BootstrapServerConfig

func (*BootstrapServerConfig) PostProcess

func (b *BootstrapServerConfig) PostProcess() error

func (*BootstrapServerConfig) Sanitize

func (b *BootstrapServerConfig) Sanitize()

func (*BootstrapServerConfig) Validate

func (b *BootstrapServerConfig) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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