str

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 12

Documentation

Index

Constants

View Source
const SEPERATOR = "/"

Variables

This section is empty.

Functions

func Checksum added in v1.4.0

func Checksum(endpoint string, metric string, tags string) string

func Contains

func Contains(smallSlice, bigSlice []string) bool

func DictedTagstring

func DictedTagstring(s string) map[string]string

func GetKey added in v1.4.0

func GetKey(filename string) string

func IdsString

func IdsString(ids []int) string

func InSlice

func InSlice(val string, slice []string) bool

func MD5

func MD5(endpoint string, metric string, tags string) string

func PK

func PK(strs ...string) string

strs目前有三种类别 endpoint/metric/tags endpoint/counter metric/tags strs 参数必须按照上面的顺序来入参

func Set

func Set(s []string) []string

slice去重

func SetInt64

func SetInt64(s []int64) []int64

func SortedTags

func SortedTags(tags map[string]string) string

func SplitN

func SplitN(m, n int) [][]int

分割m, 每次n个

func SplitTagsString

func SplitTagsString(s string) (tags map[string]string, err error)

func TrimStringSlice

func TrimStringSlice(raw []string) []string

func UUID

func UUID(endpoint, metric, tags, dstype string, step int) string

func UnixTsFormat

func UnixTsFormat(ts int64) string

func XXhash

func XXhash(strs ...string) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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