Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIHandler ¶
func NewAPIHandler( logger *slog.Logger, reg prometheus.Registerer, versionSvc *app.VersionService, serverSvc *app.ServerService, tribeSvc *app.TribeService, playerSvc *app.PlayerService, villageSvc *app.VillageService, ennoblementSvc *app.EnnoblementService, tribeChangeSvc *app.TribeChangeService, serverSnapshotSvc *app.ServerSnapshotService, tribeSnapshotSvc *app.TribeSnapshotService, playerSnapshotSvc *app.PlayerSnapshotService, opts ...APIHandlerOption, ) http.Handler
func NewMetaHandler ¶
Types ¶
type APIHandlerOption ¶ added in v1.10.4
type APIHandlerOption func(cfg *apiHandlerConfig)
func WithAPITimeout ¶
func WithAPITimeout(timeout time.Duration) APIHandlerOption
func WithOpenAPIConfig ¶
func WithOpenAPIConfig(oapiCfg OpenAPIConfig) APIHandlerOption
type OpenAPIConfig ¶
type OpenAPIConfig struct { Enabled bool SwaggerEnabled bool BasePath string Servers []OpenAPIConfigServer }
type OpenAPIConfigServer ¶
Source Files ¶
- handler_api.go
- handler_api_config.go
- handler_api_ennoblement.go
- handler_api_error.go
- handler_api_openapi.go
- handler_api_player.go
- handler_api_player_snapshot.go
- handler_api_server.go
- handler_api_server_snapshot.go
- handler_api_tribe.go
- handler_api_tribe_change.go
- handler_api_tribe_snapshot.go
- handler_api_version.go
- handler_api_village.go
- handler_meta.go
- middleware_metrics.go
- middleware_timeout.go
- utils.go
Click to show internal directories.
Click to hide internal directories.