handler

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Id

type Id struct {
	fx.In
	gid.UnimplementedIdServer
	Snowflake *snowflake.Snowflake
	Bigflake  *bigflake.Bigflake
	Cron      *scheduler.Scheduler
	Metric    metric.Stats
}

func NewId

func NewId() *Id

func (*Id) Generate

func (id *Id) Generate(ctx context.Context, req *gid.GenerateRequest) (*gid.GenerateResponse, error)

func (*Id) Init

func (id *Id) Init()

func (*Id) Types

func (id *Id) Types(ctx context.Context, req *gid.TypesRequest) (*gid.TypesResponse, error)

Jump to

Keyboard shortcuts

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