Documentation ¶
Index ¶
- Constants
- func ActionHandler(action string, config *Config) http.Handler
- func AuthenticationHandler(h http.Handler, action string, a AuthenticatorInterface) http.Handler
- func FilterHandler(h http.Handler, action string, config *Config) http.Handler
- func GetHandler(config *Config) http.Handler
- func HomeHandler() http.Handler
- func PTRFilterHandler(h http.Handler, action string, config *Config) http.Handler
- func RunServer(ctx *cli.Context, config *Config)
- type AuthenticatorInterface
- type Config
- type Server
Constants ¶
View Source
const ( ModeDefault string = "default" ModeRaw string = "raw" ActionPresent string = "present" ActionCleanup string = "cleanup" )
Variables ¶
This section is empty.
Functions ¶
func AuthenticationHandler ¶
func GetHandler ¶
func HomeHandler ¶
func PTRFilterHandler ¶
Types ¶
type AuthenticatorInterface ¶
type AuthenticatorInterface interface { // NewContext returns a new context carrying authentication // information extracted from the request. NewContext(ctx context.Context, r *http.Request) context.Context }
AuthenticatorInterface is the interface implemented by BasicAuth FIXME: is this deprecated?
type Config ¶
type Config struct { HttpServer *http.Server Provider challenge.Provider ProviderName string HtpasswdFile string AllowedIPs []string AllowedDomains []string AccesslogFile string CheckDNS bool AllowedPTRDomains []string CheckResolver *net.Resolver }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.