idgenerator

package
v0.0.0-...-9fbc374 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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

Directories

Path Synopsis
Package mock_idgenerator is a generated GoMock package.
Package mock_idgenerator is a generated GoMock package.

Jump to

Keyboard shortcuts

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