handler

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 18 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 {
	Snowflake *snowflake.Snowflake
	Bigflake  *bigflake.Bigflake
	Cron      *scheduler.Scheduler `dix:""`
	Metric    *metric.Resource     `dix:""`
}

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) Router

func (id *Id) Router(r gin.IRouter)

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