Help us shape the future of Go! Take the 2026 Go Developer Survey

httpdb

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(rr *Routes, fallback http.Handler) http.Handler

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

func (*Data) Cookie

func (d *Data) Cookie(key string) string

func (*Data) Form

func (d *Data) Form(key string) string

func (*Data) Header

func (d *Data) Header(key string) string

func (*Data) Host

func (d *Data) Host() string

func (*Data) Method

func (d *Data) Method() string

func (*Data) Path

func (d *Data) Path() string

func (*Data) Query

func (d *Data) Query(key string) string

func (*Data) RawQuery

func (d *Data) RawQuery() string

func (*Data) RequestURI

func (d *Data) RequestURI() string

func (*Data) Scheme

func (d *Data) Scheme() string

func (*Data) URLParam

func (d *Data) URLParam(key string) string

type Routes

type Routes struct {
	DB     *database.DB
	Origin string
}

func (*Routes) Router

func (rr *Routes) Router(ctx context.Context, host string) (chi.Router, error)

Jump to

Keyboard shortcuts

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