9 lines
217 B
Go
9 lines
217 B
Go
|
|
package repository
|
||
|
|
|
||
|
|
import "context"
|
||
|
|
|
||
|
|
// UIDGenerator allocates readable UIDs in the form {UIDPrefix}-{Sequence}.
|
||
|
|
type UIDGenerator interface {
|
||
|
|
Next(ctx context.Context, tenantID, uidPrefix string) (string, error)
|
||
|
|
}
|