config

package
v0.0.0-...-372632d Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string, target interface{}) error

Types

type Common

type Common struct {
	GuideEnabled string `yaml:"guideEnabled"`
	APIEnabled   string `yaml:"apiEnabled"`
}

type Database

type Database struct {
	MongodbURI             string `yaml:"mongodbURI"`
	GlobalCockroachdbURI   string `yaml:"globalCockroachdbURI"`
	RegionalCockroachdbURI string `yaml:"regionalCockroachdbURI"`
}

type Global

type Global struct {
	CloudDomain    string `yaml:"cloudDomain"`
	CloudPort      string `yaml:"cloudPort"`
	RegionUID      string `yaml:"regionUID"`
	CertSecretName string `yaml:"certSecretName"`
}

type Kube

type Kube struct {
	Version       string `yaml:"version"`
	APIServerHost string `yaml:"apiServerHost"`
	APIServerPort string `yaml:"apiServerPort"`
}

Jump to

Keyboard shortcuts

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