Documentation ¶
Overview ¶
It is inspired by the regex table mentioned in https://benhoyt.com/writings/go-routing/#regex-table
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(w http.ResponseWriter, r *http.Request)
Serve a http.Handler based on a regex table.
Types ¶
type EnsureAuth ¶
type EnsureAuth struct {
// contains filtered or unexported fields
}
func NewEnsureAuth ¶
func NewEnsureAuth(handlerToWrap http.Handler) *EnsureAuth
func (*EnsureAuth) ServeHTTP ¶
func (ea *EnsureAuth) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.