Documentation ¶
Index ¶
- Constants
- func CorsHandler(next http.Handler) http.Handler
- func DashedRedirectUUIDHandler() http.Handler
- func LoggingMiddleware(logger log.Logger) func(http.Handler) http.Handler
- func MuxToUserReq(r *http.Request) (userReq mcclient.UserReq)
- func SubRouteDashedRedirect(m *mux.Router, counter *prometheus.CounterVec)
Constants ¶
View Source
const ( UUIDPath = "/{uuid:" + minecraft.ValidUUIDPlainRegex + "}" DashPath = "/{dashedUUID:" + minecraft.ValidUUIDDashRegex + "}" UsernamePath = "/{username:" + minecraft.ValidUsernameRegex + "}" //UserPath = "/{user:" + minecraft.ValidUsernameRegex + "|" + minecraft.ValidUUIDPlainRegex + "}" // We technically only allow up to size 300, but we'll fallback on larger WidthPath = "{width:[0-9]{1,4}}" ExtensionPath = "{extension:(?:\\.png|\\.svg)?}" )
Variables ¶
This section is empty.
Functions ¶
func MuxToUserReq ¶
var "username" or "uuid" _MUST_ be present
func SubRouteDashedRedirect ¶
func SubRouteDashedRedirect(m *mux.Router, counter *prometheus.CounterVec)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.