utils

package
v0.0.0-...-f353867 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCorrelationID

func CreateCorrelationID() string

CreateCorrelationID generates a new uuid

func GetFunctionName

func GetFunctionName(i interface{}) string

GetFunctionName uses reflection to get the name of a function as a string

func GetLogFormatter

func GetLogFormatter() log.Formatter

GetLogFormatter retrieves the desired log formatter from settings.

NOTE: This should only be called after viper initializes

func GetLogLevel

func GetLogLevel() log.Level

GetLogLevel retrieves the desired log level from settings.

NOTE: This should only be called after viper initializes

func GetTypeName

func GetTypeName(i interface{}) string

GetTypeName uses reflection to get the name of a type as a string

func MapKeys

func MapKeys(m map[string]interface{}) []string

func Metrics

func Metrics() *statsd.Client

Metrics creates a singleton client for submitting metrics to DogStatsD

func MsToTime

func MsToTime(ms string) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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