Documentation ¶
Index ¶
- func NewAPIHTTPHandler(versionSvc *app.VersionService, serverSvc *app.ServerService, ...) http.Handler
- func NewMetaHTTPHandler(h *health.Health) http.Handler
- type APIHTTPHandlerOption
- type EnnoblementWatermillConsumer
- type OpenAPIConfig
- type OpenAPIConfigServer
- type PlayerWatermillConsumer
- type ServerWatermillConsumer
- type TribeWatermillConsumer
- type VillageWatermillConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIHTTPHandler ¶
func NewAPIHTTPHandler( versionSvc *app.VersionService, serverSvc *app.ServerService, tribeSvc *app.TribeService, playerSvc *app.PlayerService, villageSvc *app.VillageService, ennoblementSvc *app.EnnoblementService, tribeChangeSvc *app.TribeChangeService, tribeSnapshotSvc *app.TribeSnapshotService, playerSnapshotSvc *app.PlayerSnapshotService, opts ...APIHTTPHandlerOption, ) http.Handler
Types ¶
type APIHTTPHandlerOption ¶
type APIHTTPHandlerOption func(cfg *apiHTTPHandlerConfig)
func WithOpenAPIConfig ¶
func WithOpenAPIConfig(oapiCfg OpenAPIConfig) APIHTTPHandlerOption
type EnnoblementWatermillConsumer ¶
type EnnoblementWatermillConsumer struct {
// contains filtered or unexported fields
}
func NewEnnoblementWatermillConsumer ¶
func NewEnnoblementWatermillConsumer( svc *app.EnnoblementService, subscriber message.Subscriber, logger watermill.LoggerAdapter, marshaler watermillmsg.Marshaler, cmdSyncTopic string, cmdCleanUpTopic string, ) *EnnoblementWatermillConsumer
func (*EnnoblementWatermillConsumer) Register ¶
func (c *EnnoblementWatermillConsumer) Register(router *message.Router)
type OpenAPIConfig ¶
type OpenAPIConfig struct { Enabled bool SwaggerEnabled bool BasePath string Servers []OpenAPIConfigServer }
type OpenAPIConfigServer ¶
type PlayerWatermillConsumer ¶
type PlayerWatermillConsumer struct {
// contains filtered or unexported fields
}
func NewPlayerWatermillConsumer ¶
func NewPlayerWatermillConsumer( svc *app.PlayerService, snapshotSvc *app.PlayerSnapshotService, subscriber message.Subscriber, logger watermill.LoggerAdapter, marshaler watermillmsg.Marshaler, eventServerSyncedTopic string, cmdCreateSnapshotsTopic string, cmdCleanUpTopic string, ) *PlayerWatermillConsumer
func (*PlayerWatermillConsumer) Register ¶
func (c *PlayerWatermillConsumer) Register(router *message.Router)
type ServerWatermillConsumer ¶
type ServerWatermillConsumer struct {
// contains filtered or unexported fields
}
func NewServerWatermillConsumer ¶
func NewServerWatermillConsumer( svc *app.ServerService, snapshotSvc *app.ServerSnapshotService, subscriber message.Subscriber, logger watermill.LoggerAdapter, marshaler watermillmsg.Marshaler, cmdSyncTopic string, cmdCreateSnapshotsTopic string, eventServerSyncedTopic string, eventTribesSyncedTopic string, eventPlayersSyncedTopic string, eventVillagesSyncedTopic string, eventEnnoblementsSyncedTopic string, eventTribeSnapshotsCreatedTopic string, eventPlayerSnapshotsCreatedTopic string, ) *ServerWatermillConsumer
func (*ServerWatermillConsumer) Register ¶
func (c *ServerWatermillConsumer) Register(router *message.Router)
type TribeWatermillConsumer ¶
type TribeWatermillConsumer struct {
// contains filtered or unexported fields
}
func NewTribeWatermillConsumer ¶
func NewTribeWatermillConsumer( svc *app.TribeService, snapshotSvc *app.TribeSnapshotService, subscriber message.Subscriber, logger watermill.LoggerAdapter, marshaler watermillmsg.Marshaler, eventServerSyncedTopic string, eventVillagesSyncedTopic string, cmdCreateSnapshotsTopic string, cmdCleanUpTopic string, ) *TribeWatermillConsumer
func (*TribeWatermillConsumer) Register ¶
func (c *TribeWatermillConsumer) Register(router *message.Router)
type VillageWatermillConsumer ¶
type VillageWatermillConsumer struct {
// contains filtered or unexported fields
}
func NewVillageWatermillConsumer ¶
func NewVillageWatermillConsumer( svc *app.VillageService, subscriber message.Subscriber, logger watermill.LoggerAdapter, marshaler watermillmsg.Marshaler, eventServerSyncedTopic string, ) *VillageWatermillConsumer
func (*VillageWatermillConsumer) Register ¶
func (c *VillageWatermillConsumer) Register(router *message.Router)
Source Files ¶
- consumer_watermill_ennoblement.go
- consumer_watermill_player.go
- consumer_watermill_server.go
- consumer_watermill_tribe.go
- consumer_watermill_village.go
- handler_http_api.go
- handler_http_api_config.go
- handler_http_api_ennoblement.go
- handler_http_api_error.go
- handler_http_api_openapi.go
- handler_http_api_player.go
- handler_http_api_player_snapshot.go
- handler_http_api_server.go
- handler_http_api_tribe.go
- handler_http_api_tribe_change.go
- handler_http_api_tribe_snapshot.go
- handler_http_api_version.go
- handler_http_api_village.go
- handler_http_meta.go
- http_utils.go
Click to show internal directories.
Click to hide internal directories.