Documentation ¶
Index ¶
- func New(versionSvc VersionService, serverSvc ServerService, tribeSvc TribeService, ...) *chi.Mux
- type CORSConfig
- type EnnoblementService
- type Option
- type PlayerService
- type PlayerSnapshotService
- type ServerService
- type SwaggerConfig
- type TribeChangeService
- type TribeService
- type TribeSnapshotService
- type VersionService
- type VillageService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.8.2
func New( versionSvc VersionService, serverSvc ServerService, tribeSvc TribeService, playerSvc PlayerService, villageSvc VillageService, ennoblementSvc EnnoblementService, playerSnapshotSvc PlayerSnapshotService, tribeSnapshotSvc TribeSnapshotService, tribeChangeSvc TribeChangeService, opts ...Option, ) *chi.Mux
Types ¶
type CORSConfig ¶
type EnnoblementService ¶
type EnnoblementService interface {
ListCountWithRelations(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.EnnoblementWithRelations, int64, error)
}
type Option ¶ added in v0.8.2
type Option func(cfg *config)
func WithCORSConfig ¶ added in v0.8.2
func WithCORSConfig(cors CORSConfig) Option
func WithSwaggerConfig ¶ added in v0.8.2
func WithSwaggerConfig(swagger SwaggerConfig) Option
type PlayerService ¶
type PlayerService interface { ListCountWithRelations(ctx context.Context, params domain.ListPlayersParams) ([]domain.PlayerWithRelations, int64, error) GetByServerKeyAndIDWithRelations(ctx context.Context, serverKey string, id int64) (domain.PlayerWithRelations, error) }
type PlayerSnapshotService ¶ added in v0.7.0
type PlayerSnapshotService interface {
ListCountWithRelations(ctx context.Context, params domain.ListPlayerSnapshotsParams) ([]domain.PlayerSnapshotWithRelations, int64, error)
}
type ServerService ¶
type SwaggerConfig ¶ added in v0.2.2
type TribeChangeService ¶ added in v0.7.5
type TribeChangeService interface {
ListCountWithRelations(ctx context.Context, params domain.ListTribeChangesParams) ([]domain.TribeChangeWithRelations, int64, error)
}
type TribeService ¶
type TribeSnapshotService ¶ added in v0.10.0
type TribeSnapshotService interface {
ListCount(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, int64, error)
}
type VersionService ¶
type VillageService ¶
type VillageService interface { ListCountWithRelations(ctx context.Context, params domain.ListVillagesParams) ([]domain.VillageWithRelations, int64, error) GetByServerKeyAndIDWithRelations(ctx context.Context, serverKey string, id int64) (domain.VillageWithRelations, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.