router

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 14 Imported by: 0

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)

Jump to

Keyboard shortcuts

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