http

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter added in v0.13.0

func NewRouter(ct pages.Controller, app core.App, fileFS fs.FS, csrfSecret []byte, ss sessions.Store) *chi.Mux

Types

type Controller added in v0.13.0

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

func NewController added in v0.13.0

func NewController(app core.App, timeHourFormat string) Controller

func (Controller) Component added in v0.13.0

func (ct Controller) Component(w http.ResponseWriter, r *http.Request, body templ.Component)

func (Controller) Error added in v0.13.0

func (ct Controller) Error(w http.ResponseWriter, r *http.Request, err error, code int)

func (Controller) Meta added in v0.13.0

func (ct Controller) Meta(r *http.Request) meta.Meta

func (Controller) Page added in v0.13.0

func (ct Controller) Page(w http.ResponseWriter, r *http.Request, body templ.Component)

type Server added in v0.13.0

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

func NewServer added in v0.13.0

func NewServer(handler http.Handler, address string) Server

func (Server) Serve added in v0.13.0

func (s Server) Serve(ctx context.Context) error

func (Server) String added in v0.13.0

func (Server) String() string

Jump to

Keyboard shortcuts

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