feat: game lobby service
This commit is contained in:
@@ -6,14 +6,15 @@ import (
|
||||
"galaxy/user/internal/domain/policy"
|
||||
)
|
||||
|
||||
// IDGenerator creates new user identifiers and generated initial race names.
|
||||
// IDGenerator creates new user identifiers and auto-generated user names.
|
||||
type IDGenerator interface {
|
||||
// NewUserID returns one newly generated stable user identifier.
|
||||
NewUserID() (common.UserID, error)
|
||||
|
||||
// NewInitialRaceName returns one generated initial race name in the
|
||||
// `player-<shortid>` form.
|
||||
NewInitialRaceName() (common.RaceName, error)
|
||||
// NewUserName returns one generated immutable user name in the
|
||||
// `player-<suffix>` form. The suffix is eight characters drawn from a
|
||||
// confusable-free alphanumeric alphabet.
|
||||
NewUserName() (common.UserName, error)
|
||||
|
||||
// NewEntitlementRecordID returns one newly generated entitlement history
|
||||
// record identifier.
|
||||
|
||||
Reference in New Issue
Block a user