str

package
Version: v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SEPERATOR = "/"

Variables

This section is empty.

Functions

func Checksum

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

func GetKey(filename string) string

func IdsString

func IdsString(ids []int) string

func InSlice

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

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 ToMD5

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

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL