mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 04:24:44 +00:00
add types endpoint to id service
This commit is contained in:
@@ -76,3 +76,13 @@ func (id *Id) Generate(ctx context.Context, req *pb.GenerateRequest, rsp *pb.Gen
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (id *Id) Types(ctx context.Context, req *pb.TypesRequest, rsp *pb.TypesResponse) error {
|
||||
rsp.Types = []string{
|
||||
"uuid",
|
||||
"shortid",
|
||||
"snowflake",
|
||||
"bigflake",
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user