Documentation ¶
Index ¶
- Variables
- func AddIfNotContain(sl []string, v string) ([]string, bool)
- func CheckStringInList(sl []string, v string) bool
- func ContainString(sl []string, v string) (int, bool)
- func GenUUID() string
- func RemoveIfContain(sl []string, v string) ([]string, bool)
- func Reverse(ori []string) []string
- func Send(ns string, ms []models.Metric) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInitNodeBucket = errors.New("init node bucket fail") ErrInitNodeKey = errors.New("init node bucket k-v fail") ErrGetNode = errors.New("get node fail") ErrNodeNotFound = errors.New("node not found") ErrGetParent = errors.New("get parent node error") ErrCreateNodeUnderLeaf = errors.New("can not create node under leaf node") ErrSetResourceToLeaf = errors.New("can not set resource to leaf node") ErrGetNodeID = errors.New("get nodeid fail") ErrInvalidParam = errors.New("invalid param") ErrNilChildNode = errors.New("get none child node") ErrNodeAlreadyExist = errors.New("node already exist") ErrNoLeafChild = errors.New("have no leaf child node") ErrNotAllowDel = errors.New("not allow to be delete") ErrEmptyResource error = errors.New("empty resources") ErrGroupNotFound = errors.New("group not found") ErrGroupAlreadyExist = errors.New("group already exist") ErrUserNotFound = errors.New("user not found") )
Functions ¶
func CheckStringInList ¶
func RemoveIfContain ¶
RemoveIfContain remove the first string in the string list.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.