Documentation ¶
Index ¶
- func GenDbId(ctx context.Context, req *id.GenDbIdReq) (*id.GenDbIdResp, error)
- func GenSnowflakeId(ctx context.Context, req *id.GenSnowflakeIdReq) (*id.GenSnowflakeIdResp, error)
- func Init()
- func RegistKey(ctx context.Context, req *id.RegistKeyReq) (*ret.EmptyResp, error)
- func SnowflakeIdToTime(ctx context.Context, req *id.SnowflakeIdToTimeReq) (*id.SnowflakeIdToTimeResp, error)
- type DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenDbId ¶
func GenDbId(ctx context.Context, req *id.GenDbIdReq) (*id.GenDbIdResp, error)
func GenSnowflakeId ¶
func GenSnowflakeId(ctx context.Context, req *id.GenSnowflakeIdReq) (*id.GenSnowflakeIdResp, error)
func SnowflakeIdToTime ¶
func SnowflakeIdToTime(ctx context.Context, req *id.SnowflakeIdToTimeReq) (*id.SnowflakeIdToTimeResp, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.