fxidgenerator

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(func(config *Config) (idgenerator.Generator, error) {
		return idgenerator.New(&idgenerator.NodeID{
			Top: config.TopNodeID,
			Low: config.LowNodeID,
		})
	}),
)

Functions

This section is empty.

Types

type Config

type Config struct {
	TopNodeID int64
	LowNodeID int64
}

Jump to

Keyboard shortcuts

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