Documentation
¶
Index ¶
- func GetTimeFromULID(idwrap IDWrap) time.Time
- func GetUlid(id IDWrap) ulid.ULID
- func GetUnixMilliFromULID(idwrap IDWrap) int64
- type IDWrap
- func (u IDWrap) Bytes() []byte
- func (u IDWrap) Compare(id IDWrap) int
- func (u IDWrap) GetUlid() ulid.ULID
- func (id IDWrap) MarshalYAML() (interface{}, error)
- func (u *IDWrap) Scan(value interface{}) error
- func (u IDWrap) String() string
- func (u IDWrap) Time() time.Time
- func (id *IDWrap) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (u IDWrap) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeFromULID ¶
func GetUnixMilliFromULID ¶
Types ¶
type IDWrap ¶
type IDWrap struct {
// contains filtered or unexported fields
}
func NewFromBytes ¶
func NewFromBytesMust ¶
func NewMonotonic ¶
func NewMonotonic() IDWrap
NewMonotonic generates a ULID that is guaranteed to be greater than the previous one if generated within the same monotonic horizon (1 second).
func NewTextMust ¶
func (IDWrap) MarshalYAML ¶
MarshalYAML implements the yaml.Marshaler interface.
func (*IDWrap) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.