config

package
v0.0.0-...-41ddd9f Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 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
y or Y : Canonical URL