util

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustRateInterval added in v0.9.1

func AdjustRateInterval(namespaceCreationTime time.Time, queryTime time.Time, ratesInterval string) (string, error)

func GetStartTimeForRateInterval added in v0.9.1

func GetStartTimeForRateInterval(baseTime time.Time, rateInterval string) (time.Time, error)

func RemoveNilValues added in v1.9.0

func RemoveNilValues(root interface{})

Types

type ClockMock added in v0.9.1

type ClockMock struct {
	Time time.Time
}

func (ClockMock) Now added in v0.9.1

func (clock ClockMock) Now() time.Time

type RealClock added in v0.9.1

type RealClock struct{}

func (RealClock) Now added in v0.9.1

func (clock RealClock) Now() time.Time

type TimeProvider added in v0.9.1

type TimeProvider interface {
	Now() time.Time
}
var Clock TimeProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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