Documentation ¶
Index ¶
- func GetComponentUniqueID(component string) (id string)
- func GetMacAddrWithoutDelimiters() (macAddr string, err errors.Error)
- func GetPseudoUUID() (uuid string)
- func ParseBytes(val string) (bytes uint64, err error)
- func Round(x float64) float64
- func StartOpenCensus(ctx context.Context, apiKey string, dataset string) (err errors.Error)
- type Exclusive
- type Logger
- func (l *Logger) Debug(msg string, args ...interface{})
- func (l *Logger) Error(msg string, args ...interface{}) error
- func (l *Logger) Fatal(msg string, args ...interface{})
- func (l *Logger) Info(msg string, args ...interface{})
- func (l *Logger) IsDebug() bool
- func (l *Logger) IsInfo() bool
- func (l *Logger) IsTrace() bool
- func (l *Logger) IsWarn() bool
- func (l *Logger) Log(level int, msg string, args []interface{})
- func (l *Logger) SetLevel(lvl int)
- func (l *Logger) Trace(msg string, args ...interface{})
- func (l *Logger) Warn(msg string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComponentUniqueID ¶
GetComponentUniqueID produces a non RFC 4122 UUID that is tied to the MAC address if available for is generated randomly if not
func GetPseudoUUID ¶
func GetPseudoUUID() (uuid string)
GetPseudoUUID will generate an RFC 4122 compliant UUID using Version 4
func ParseBytes ¶
parseBytes returns a value for the input string.
This function uses the humanize library from github for go.
Typical inputs can include by way of examples '6gb', '6 GB', '6 GiB'. Inputs support SI and IEC sizes. For more information please review https://github.com/dustin/go-humanize/blob/master/bytes.go
Types ¶
type Exclusive ¶
type Exclusive struct { Name string ReleaseC chan struct{} // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.