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 ...APIHTTPHandlerOption, ) http.Handler
func NewMetaHandler ¶
Types ¶
type APIHTTPHandlerOption ¶
type APIHTTPHandlerOption func(cfg *apiHTTPHandlerConfig)
func WithAPITimeout ¶
func WithAPITimeout(timeout time.Duration) APIHTTPHandlerOption
func WithOpenAPIConfig ¶
func WithOpenAPIConfig(oapiCfg OpenAPIConfig) APIHTTPHandlerOption
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
- utils.go
Click to show internal directories.
Click to hide internal directories.