acme

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL