Documentation
¶
Index ¶
- Variables
- func CopyMapGob(m map[string]interface{}) (map[string]interface{}, error)
- func CreateDirIfNotExist(dir string)
- func DeepCopyJSON(src map[string]interface{}, dest map[string]interface{})
- func Duration(invocation time.Time, name, pkg, desc string)
- func GetFloat(num interface{}) (float64, error)
- func GetSHA1Hash(s string) string
- func InitLogger(lconf LogConf)
- func IsArray(s string) bool
- func IsBool(s string) bool
- func IsDuration(s string) bool
- func IsJSONString(s string) bool
- func IsNestedArray(s string) bool
- func IsNumeric(s string) bool
- func MapStringEquals(a, b map[string]string) bool
- func MergeMaps(globalVar map[string][]string, tsVars ...map[string][]string) map[string][]string
- func ParseDuration(durationStr string) (time.Duration, error)
- func StringInSlice(a string, list []string) bool
- type LogConf
Constants ¶
This section is empty.
Variables ¶
View Source
var ALLVARS map[string][]string
View Source
var Log *logrus.Logger
Functions ¶
func CopyMapGob ¶
Map performs a deep copy of the given map m.
func CreateDirIfNotExist ¶
func CreateDirIfNotExist(dir string)
func DeepCopyJSON ¶
func InitLogger ¶
func InitLogger(lconf LogConf)
init Initialise le module de Logging de vigie. L'instance crée sera accessible par tout les packages
func IsDuration ¶
func IsJSONString ¶
func IsNestedArray ¶
func MapStringEquals ¶
func MergeMaps ¶
MergeMaps merge 2 maps, in case of duplicate: the second map arg will overwrite the value.
func StringInSlice ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.