util

package
v0.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateNumberOfCollector added in v0.2.8

func CalculateNumberOfCollector(topicCount int, maxHostCount int) int

func GetAllTopicBySort added in v0.2.8

func GetAllTopicBySort(topicsSlice []string) []string

func GetFields

func GetFields(val reflect.Value) []string

func GetLogger added in v0.3.5

func GetLogger() *logrus.Logger

func MakeCollectorTopicMap added in v0.2.8

func MakeCollectorTopicMap(allTopics []string, maxHostCount int) (map[int][]string, []int)

func MakeCollectorTopicMapBasedCSP added in v0.2.8

func MakeCollectorTopicMapBasedCSP(allTopics []string) map[int][]string

func MergeTopicsToOneString added in v0.2.8

func MergeTopicsToOneString(topicsSlice []string) string

func ReturnDiffTopicList added in v0.2.8

func ReturnDiffTopicList(a, b []string) (diff []string)

func RunCommand

func RunCommand(vmIP string, userName string, privateKey string, cmd string) (*string, error)

func SplitOneStringToTopicsSlice added in v0.2.8

func SplitOneStringToTopicsSlice(topicsStrings string) []string

func StructToMap

func StructToMap(i interface{}) (values url.Values)

func ToMap

func ToMap(val interface{}) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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