routes

package
v0.0.0-...-4fe8555 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	Users [][2]string
	Port  int
	Mux   *chi.Mux
}

func (*Router) Bancho

func (router *Router) Bancho(w http.ResponseWriter, r *http.Request)

func (*Router) HandleBancho

func (router *Router) HandleBancho(paths []string)

func (*Router) HandleIndex

func (router *Router) HandleIndex(paths map[string]string)

func (*Router) Index

func (router *Router) Index(path, fn string) http.HandlerFunc

func (*Router) Serve

func (router *Router) Serve() error

Jump to

Keyboard shortcuts

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