Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(cfg RouterConfig) *chi.Mux
Types ¶
type CORSConfig ¶
type EnnoblementService ¶
type EnnoblementService interface {
ListCountWithRelations(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.EnnoblementWithRelations, int64, error)
}
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 RouterConfig ¶
type RouterConfig struct { VersionService VersionService ServerService ServerService TribeService TribeService PlayerService PlayerService VillageService VillageService EnnoblementService EnnoblementService CORS CORSConfig Swagger SwaggerConfig }
type ServerService ¶
type SwaggerConfig ¶ added in v0.2.2
type TribeService ¶
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.