Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdGeneratorInterface ¶
type IdGeneratorInterface interface {
Generate() int64
}
IdGeneratorInterface defines contract for an id generator
func NewIdGeneratorService ¶
func NewIdGeneratorService(node *snowflake.Node) (IdGeneratorInterface, error)
NewIdGeneratorService creates a concrete implementation of the IdGeneratorInterface interface
Click to show internal directories.
Click to hide internal directories.