Documentation ¶
Index ¶
- func HealthcheckHandler(mc *mcclient.McClient) http.HandlerFunc
- func RegisterSkinRoutes(m *mux.Router, skinWrapper SkinWrapper)
- func SizecheckHandler(mc *mcclient.McClient) http.HandlerFunc
- func SkinDownloadProcessor(logger log.Logger, skinIO mcuser.TextureIO) http.HandlerFunc
- func SkinPageProcessor(logger log.Logger, skinIO mcuser.TextureIO) http.HandlerFunc
- type Config
- type SkinProcessor
- type SkinWrapper
- type Skind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthcheckHandler ¶
func HealthcheckHandler(mc *mcclient.McClient) http.HandlerFunc
func RegisterSkinRoutes ¶
func RegisterSkinRoutes(m *mux.Router, skinWrapper SkinWrapper)
func SizecheckHandler ¶
func SizecheckHandler(mc *mcclient.McClient) http.HandlerFunc
func SkinDownloadProcessor ¶
SkinDownloadProcessor Uses the TextureIO to set the downloaded filename of the skin
func SkinPageProcessor ¶
SkinPageProcessor simply copies the TextureIO to the ResponseWriter
Types ¶
type Config ¶
type Config struct { Server server.Config `yaml:"server,omitempty"` McClient mcclient.Config `yaml:"mcclient,omitempty"` Logger log.Logger // Add open CORS headers to easch response CorsAllowAll bool // Return an ETag based on the texture ID UseETags bool // Return a 302 redirect for Username requests to their related UUID RedirectUsername bool CacheControlTTL time.Duration }
func (*Config) RegisterFlags ¶
RegisterFlags registers flag.
type SkinProcessor ¶
SkinProcessor *MUST* call mcuser.TextureIO.Close() before completing
type SkinWrapper ¶
type SkinWrapper func(SkinProcessor) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.