config

package
Version: v0.0.0-...-9e5c3a8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ClusterFile : the ipports for each server in cluster
	ClusterFile = flag.String("ClusterFile", "", "the file of ClusterInfo")

	Host     string
	HostAddr string
	AllHosts []string
	KeeperID int
)

Functions

func GetIP

func GetIP() string

func LoadFromCmd

func LoadFromCmd()

func LoadFromFile

func LoadFromFile()

func SetAllHosts

func SetAllHosts(hosts []string)

func SetHost

func SetHost(host string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL