config

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 4 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 {
	UnderlayIP                string `json:"underlay_ip" validate:"nonzero"`
	VxlanInterfaceName        string `json:"vxlan_interface_name"`
	SubnetPrefixLength        int    `json:"subnet_prefix_length" validate:"nonzero"`
	OverlayNetwork            string `json:"overlay_network" validate:"nonzero"`
	HealthCheckPort           uint16 `json:"health_check_port" validate:"nonzero"`
	VTEPName                  string `json:"vtep_name" validate:"nonzero"`
	ConnectivityServerURL     string `json:"connectivity_server_url" validate:"nonzero"`
	ServerCACertFile          string `json:"ca_cert_file" validate:"nonzero"`
	ClientCertFile            string `json:"client_cert_file" validate:"nonzero"`
	ClientKeyFile             string `json:"client_key_file" validate:"nonzero"`
	VNI                       int    `json:"vni" validate:"nonzero"`
	VTEPPort                  int    `json:"vtep_port" validate:"min=1"`
	PollInterval              int    `json:"poll_interval" validate:"nonzero"`
	DebugServerPort           int    `json:"debug_server_port" validate:"nonzero"`
	Datastore                 string `json:"datastore" validate:"nonzero"`
	PartitionToleranceSeconds int    `json:"partition_tolerance_seconds" validate:"nonzero"`
	ClientTimeoutSeconds      int    `json:"client_timeout_seconds" validate:"nonzero"`
	MetronPort                int    `json:"metron_port" validate:"min=1"`
	LogPrefix                 string `json:"log_prefix" validate:"nonzero"`
	LogLevel                  string `json:"log_level"`
	SingleIPOnly              bool   `json:"single_ip_only"`
}

func LoadConfig

func LoadConfig(filePath string) (Config, error)

Jump to

Keyboard shortcuts

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