ordernum

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderId

type OrderId string

func NewOrderId

func NewOrderId() OrderId

func NewOrderIdWithTime

func NewOrderIdWithTime(t time.Time) OrderId

gen 24-bit order num 17-bit mean time precision ms ,3-bit mean process id,last 4-bit mean incr num

func (OrderId) ExistsTag

func (id OrderId) ExistsTag(tag string) bool

func (OrderId) Len

func (id OrderId) Len() int

func (OrderId) String

func (id OrderId) String() string

func (OrderId) Tags

func (id OrderId) Tags() []string

func (OrderId) Time

func (id OrderId) Time() time.Time

func (OrderId) WithTag

func (id OrderId) WithTag(tag string) OrderId

Jump to

Keyboard shortcuts

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