package
9.16.1+incompatible
Repository: https://github.com/topfreegames/maestro.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
Chain applies middlewares to a http.HandlerFunc.
NewAccessMiddleware returns an access middleware.
NewApp ctor.
NewAuthMiddleware returns an access middleware This middleware must come after BasicAuthMiddleware and AccessMiddleware, otherwise won't do anything.
NewDogStatsdMiddleware creates a new newrelic middleware.
NewGetSchedulerConfigHandler returns an instance of SchedulerConfigHandler.
NewGetSchedulerReleasesHandler returns an instance of SchedulerConfigHandler.
NewHealthcheckHandler creates a new healthcheck handler.
LoginAccessHandler handles login url requests.
LoginUrlHandler handles login url requests.
NewMetricsReporterMiddleware creates a new metrics reporter middleware.
NewNewRelicMiddleware creates a new newrelic middleware.
NewOperationNotFoundError ctor.
NewParamMiddleware constructs a new param middleware.
NewPlayerEventHandler creates a new player event handler.
NewResponseTimeMiddleware returns an instance of ResponseTimeMiddleware.
NewRoomAddressHandler creates a new address handler.
No description provided by the author
NewRoomEventHandler creates a new room event handler.
NewRoomListByMetricHandler creates a new address handler.
NewRoomListBySchedulerAndStatusHandler creates a new address handler.
NewRoomPingHandler creates a new ping handler.
NewRoomStatusHandler creates a new status handler.
NewSchedulerCreateHandler creates a new scheduler create handler.
NewSchedulerDeleteHandler creates a new scheduler delete handler.
NewSchedulerDiffHandler returns an instance of SchedulerConfigHandler.
NewSchedulerEventHandler returns an instance of SchedulerEventHandler.
NewSchedulerImageHandler creates a new scheduler create handler.
NewSchedulerListHandler lists schedulers.
NewSchedulerLockDeleteHandler returns an instance of SchedulerLocksDeleteHandler.
NewSchedulerLocksListHandler returns an instance of SchedulerLocksListHandler.
NewSchedulerOperationCancelCurrentHandler returns an instance of SchedulerConfigHandler.
NewSchedulerOperationCancelHandler returns an instance of SchedulerConfigHandler.
NewSchedulerOperationCurrentStatusHandler returns an instance of SchedulerConfigHandler.
NewSchedulerOperationHandler returns an instance of SchedulerConfigHandler.
NewSchedulerRollbackHandler returns an instance of SchedulerConfigHandler.
NewSchedulerScaleHandler get scheduler and its rooms status.
NewSchedulerStatusHandler get scheduler and its rooms status.
NewSchedulerUpdateHandler creates a new scheduler delete handler.
NewSchedulerUpdateMinHandler creates a new scheduler create handler.
NewSentryMiddleware creates a new sentry middleware.
NewValidationMiddleware creates a new validation middleware.
NewVersionMiddleware creates a new version middleware.
No description provided by the author
Write to the response and with the status code.
WriteBytes to the response and with the status code.
WriteJSON to the response and with the status code.
# Constants
Constants for api configuration.
Constants for api configuration.
Constants for api configuration.
PayloadString is the context key for validation middleware.
Constants for api configuration.
# Structs
AccessMiddleware guarantees that the user is logged.
App is our API application.
AuthMiddleware ensure that this user has authorization toexecute an operation on the scheduler.
DogStatsdMiddleware handles logging.
GetSchedulerConfigHandler handler returns the scheduler config.
GetSchedulerReleasesHandler handler returns the scheduler config.
HealthcheckHandler handler.
LoginAccessHandler handles login url requests.
LoginUrlHandler handles login url requests.
MetricsReporterMiddleware handles logging.
NewRelicMetricsReporter reports metrics to new relic.
NewRelicMiddleware handles logging.
OperationNotFoundError happens when opManager.Get(key) doesn't find an associated operation.
ParamMiddleware add into the model the parameters that came in the URI.
PlayerEventHandler handler.
ResponseTimeMiddleware sends to a statsd the route response time.
RoomAddressHandler handler.
RoomDetailsHandler handler.
RoomEventHandler handler.
RoomListByMetricHandler handler.
RoomListBySchedulerAndStatusHandler handler.
RoomPingHandler handler.
RoomStatusHandler handler.
SchedulerCreateHandler handler.
SchedulerDeleteHandler handler.
SchedulerDiffHandler handler returns the scheduler config.
SchedulerEventHandler returns the scheduler events.
SchedulerImageHandler handler.
SchedulerListHandler handler.
SchedulerLockDeleteHandler handler deletes a scheduler lock.
SchedulerLocksListHandler handler returns schedulers locks.
SchedulerOperationCancelCurrentHandler returns the current status on scheduler operation.
SchedulerOperationCancelHandler returns the current status on scheduler operation.
SchedulerOperationCurrentStatusHandler returns the current status on scheduler operation.
SchedulerOperationHandler returns the current status on scheduler operation.
SchedulerRollbackHandler handler returns the scheduler config.
SchedulerScaleHandler handler.
SchedulerStatusHandler handler.
SchedulerUpdateHandler handler.
SchedulerUpdateMinHandler handler.
SentryMiddleware adds the version to the request.
ValidationMiddleware adds the version to the request.
VersionMiddleware adds the version to the request.
No description provided by the author
# Interfaces
Middleware contract.