package
4.17.1+incompatible
Repository: https://github.com/lftakakura/maestro.git
Documentation: pkg.go.dev
# 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.
NewBasicAuthMiddleware returns an instance of basicauth.
NewContextWithBasicAuthOK gets if basic auth was sent and is ok.
NewContextWithEmail adds the email from oauth into context.
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.
NewRoomEventHandler creates a new room event 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.
NewSchedulerImageHandler creates a new scheduler create handler.
NewSchedulerListHandler lists schedulers.
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.
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
PayloadString is the context key for validation middleware.
# 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.
BasicAuthMiddleware guarantees that the user is logged.
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.
RoomEventHandler handler.
RoomPingHandler handler.
RoomStatusHandler handler.
SchedulerCreateHandler handler.
SchedulerDeleteHandler handler.
SchedulerDiffHandler handler returns the scheduler config.
SchedulerImageHandler handler.
SchedulerListHandler handler.
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.
# Interfaces
Middleware contract.