Documentation
¶
Index ¶
- Variables
- type Admin
- type AdminClaims
- func (a *AdminClaims) GetAudience() (jwt.ClaimStrings, error)
- func (a *AdminClaims) GetExpirationTime() (*jwt.NumericDate, error)
- func (a *AdminClaims) GetIssuedAt() (*jwt.NumericDate, error)
- func (a *AdminClaims) GetIssuer() (string, error)
- func (a *AdminClaims) GetNotBefore() (*jwt.NumericDate, error)
- func (a *AdminClaims) GetSubject() (string, error)
- type AdminRepo
- type AdminUseCase
- type GameFileRepo
- type GameFileUseCase
- func (uc *GameFileUseCase) DeleteGames(ctx context.Context, games []string) (int32, error)
- func (uc *GameFileUseCase) ListGames(ctx context.Context, page, pageSize int32) ([]*v1.GameFileMetadata, int32, error)
- func (uc *GameFileUseCase) UploadGame(ctx context.Context, name string, data []byte) error
- type GamingRepo
- type GamingUseCase
- type Room
- type RoomGameStats
- type RoomRepo
- type RoomStats
- type RoomUseCase
- type ServiceEndpoint
- type User
- type UserRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGameFileUseCase, NewRoomUseCase, NewAdminUseCase, NewGamingUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type AdminClaims ¶
type AdminClaims struct {
Id int64
jwt.RegisteredClaims
}
func (*AdminClaims) GetAudience ¶
func (a *AdminClaims) GetAudience() (jwt.ClaimStrings, error)
func (*AdminClaims) GetExpirationTime ¶
func (a *AdminClaims) GetExpirationTime() (*jwt.NumericDate, error)
func (*AdminClaims) GetIssuedAt ¶
func (a *AdminClaims) GetIssuedAt() (*jwt.NumericDate, error)
func (*AdminClaims) GetIssuer ¶
func (a *AdminClaims) GetIssuer() (string, error)
func (*AdminClaims) GetNotBefore ¶
func (a *AdminClaims) GetNotBefore() (*jwt.NumericDate, error)
func (*AdminClaims) GetSubject ¶
func (a *AdminClaims) GetSubject() (string, error)
type AdminUseCase ¶
type AdminUseCase struct {
// contains filtered or unexported fields
}
func NewAdminUseCase ¶
func (*AdminUseCase) CreateAdmin ¶
func (u *AdminUseCase) CreateAdmin(ctx context.Context, admin *Admin) error
type GameFileRepo ¶
type GameFileUseCase ¶
type GameFileUseCase struct {
// contains filtered or unexported fields
}
func NewGameFileUseCase ¶
func NewGameFileUseCase(repo GameFileRepo, logger log.Logger) *GameFileUseCase
func (*GameFileUseCase) DeleteGames ¶
func (*GameFileUseCase) ListGames ¶
func (uc *GameFileUseCase) ListGames(ctx context.Context, page, pageSize int32) ([]*v1.GameFileMetadata, int32, error)
func (*GameFileUseCase) UploadGame ¶
type GamingRepo ¶
type GamingRepo interface {
GetRoomGameStats(ctx context.Context, roomId int64, endpoint string) (*RoomGameStats, error)
ListGamingServiceEndpoints(ctx context.Context, page, pageSize int32) ([]*ServiceEndpoint, int32, error)
ListActiveRoomsOnEndpoint(ctx context.Context, id string) ([]*RoomStats, error)
}
type GamingUseCase ¶
type GamingUseCase struct {
// contains filtered or unexported fields
}
func NewGamingUseCase ¶
func NewGamingUseCase(repo GamingRepo, rr RoomRepo, ur UserRepo, logger log.Logger) *GamingUseCase
func (*GamingUseCase) ListActiveRoomsOnEndpoint ¶
func (*GamingUseCase) ListGamingServiceEndpoints ¶
func (g *GamingUseCase) ListGamingServiceEndpoints(ctx context.Context, page, pageSize int32) ([]*ServiceEndpoint, int32, error)
type RoomGameStats ¶
type RoomStats ¶
type RoomStats struct {
Room
RoomGameStats
}
type RoomUseCase ¶
type RoomUseCase struct {
// contains filtered or unexported fields
}
func NewRoomUseCase ¶
func NewRoomUseCase(repo RoomRepo, ur UserRepo, gr GamingRepo, logger log.Logger) *RoomUseCase
func (*RoomUseCase) GetRoomStats ¶
type ServiceEndpoint ¶
Click to show internal directories.
Click to hide internal directories.