config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT 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 {
	CurrentTikv string       `yaml:"currentTikv"`
	Tikvs       []TikvConfig `yaml:"tikvs"`
}

func (*Config) Load

func (c *Config) Load() error

func (*Config) Save

func (c *Config) Save() error

type Security

type Security struct {
	ClusterSSLCA    string   `yaml:"cluster-ssl-ca"`
	ClusterSSLCert  string   `yaml:"cluster-ssl-cert"`
	ClusterSSLKey   string   `yaml:"cluster-ssl-key"`
	ClusterVerifyCN []string `yaml:"cluster-verify-cn"`
}

type TikvConfig

type TikvConfig struct {
	Name     string   `yaml:"name,omitempty"`
	Address  []string `yaml:"address,omitempty"`
	Security Security `yaml:"security,omitempty"`
}

Jump to

Keyboard shortcuts

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