Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain interface {
ServeFileHTTP(w http.ResponseWriter, r *http.Request) bool
}
Domain interface represent D from domain package
type Middleware ¶
type Middleware struct {
GitlabURL string
}
Middleware handles acme challenges by redirecting them to GitLab instance
func (*Middleware) ServeAcmeChallenges ¶
func (m *Middleware) ServeAcmeChallenges(w http.ResponseWriter, r *http.Request, domain Domain) bool
ServeAcmeChallenges identifies if request is acme-challenge and redirects to GitLab in that case
Click to show internal directories.
Click to hide internal directories.