Documentation
¶
Index ¶
- func AcmeMiddleware(handler http.Handler, s source.Source, gitlabURL string) http.Handler
- func ArtifactMiddleware(handler http.Handler, h *Handlers) http.Handler
- func HTTPSRedirectMiddleware(handler http.Handler, redirect bool) http.Handler
- func Ratelimiter(handler http.Handler, config *config.RateLimit) http.Handler
- type Handlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcmeMiddleware ¶ added in v1.59.0
func ArtifactMiddleware ¶ added in v1.58.0
func HTTPSRedirectMiddleware ¶ added in v1.58.0
func Ratelimiter ¶ added in v1.49.0
Ratelimiter configures the ratelimiter middleware TODO: make this unexported once https://gitlab.com/gitlab-org/gitlab-pages/-/issues/670 is done
Types ¶
type Handlers ¶
Handlers take care of handling specific requests
func New ¶
New when provided the arguments defined herein, returns a pointer to an Handlers that is used to handle requests.
func (*Handlers) HandleArtifactRequest ¶
HandleArtifactRequest handles all artifact related requests, will return true if request was handled here
Click to show internal directories.
Click to hide internal directories.