lang

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIpCidr added in v0.3.5

func CheckIpCidr(name string, val string) error

func CheckName added in v0.3.5

func CheckName(name string) error

func GetIdxToInt added in v0.3.5

func GetIdxToInt(idx string) int

func GetMaxNumber added in v0.3.5

func GetMaxNumber(arr []int) int

func GetNodeName

func GetNodeName(clusterName string, role string, idx int) string

get node name

func GetRandomString

func GetRandomString(n int) string

Random string generation

func GetStoreClusterKey

func GetStoreClusterKey(namespace string, clusterName string) string

get store cluster key

func GetStoreNodeKey

func GetStoreNodeKey(namespace string, clusterName string, nodeName string) string

get store node key

func GetUid

func GetUid() string

get uuid

func NVL

func NVL(str string, def string) string

NVL is null value logic

Types

This section is empty.

Jump to

Keyboard shortcuts

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