github_standards

package
v1.0.0-sql.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handlers

func Handlers(ctx context.Context, mux *http.ServeMux, dbPath string) map[string]func(w http.ResponseWriter, r *http.Request)

Handlers are all the handler functions, returns a map of funcs

  • do it this way so multiple routes can share functions and the handler can then get some of the vars set in the scope of this function (like query params etc)

func Register

func Register(ctx context.Context, mux *http.ServeMux, dbPath string) (err error)

Register attached the route to the list view

Types

This section is empty.

Jump to

Keyboard shortcuts

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