Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthToken ¶
Types ¶
type CorsMiddleware ¶
type CorsMiddleware struct {
// contains filtered or unexported fields
}
func NewCors ¶
func NewCors(handler http.Handler) *CorsMiddleware
func (*CorsMiddleware) ServeHTTP ¶
func (this *CorsMiddleware) ServeHTTP(res http.ResponseWriter, req *http.Request)
type MirrorMiddleware ¶ added in v0.2.44
type MirrorMiddleware struct {
// contains filtered or unexported fields
}
func NewMirrorMiddleware ¶ added in v0.2.44
func NewMirrorMiddleware(handler http.Handler, config configuration.Config, pull MirrorPull) *MirrorMiddleware
func (*MirrorMiddleware) GetToken ¶ added in v0.2.44
func (this *MirrorMiddleware) GetToken() (result string, err error)
func (*MirrorMiddleware) ServeHTTP ¶ added in v0.2.44
func (this *MirrorMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type MirrorPull ¶ added in v0.2.49
type MirrorPull interface {
MirrorUpdate() error
}
Click to show internal directories.
Click to hide internal directories.