Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeUnitNamer ¶
type TimeUnitNamer struct {
// contains filtered or unexported fields
}
TimeUnitNamer is an namer optimized for lower memory allocations it uses rw cache underline
func MustNewTimeUnitNamer ¶
func MustNewTimeUnitNamer(prefix string, unit clock.Unit) *TimeUnitNamer
MustNewTimeUnitNamer creates a new namer with names cache and panics if input parameters are invalid
func NewTimeUnitNamer ¶
func NewTimeUnitNamer(prefix string, unit clock.Unit) (*TimeUnitNamer, error)
NewTimeUnitNamer creates a new namer with names cache prefix is expected to have only letters in lower case, digits or underscore and shouldn't be empty if inputs are invalid error is returned
Click to show internal directories.
Click to hide internal directories.