router

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MPL-2.0 Imports: 17 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 {
	// contains filtered or unexported fields
}

func New added in v0.0.30

func New(cfg config.Config, opts config.Options, log *slog.Logger) (*Router, error)

func (*Router) Build added in v0.0.30

func (r *Router) Build(ctx context.Context) error

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Router) Shutdown

func (r *Router) Shutdown(ctx context.Context) error

Shutdown shuts down the router

Directories

Path Synopsis
Package chain provides a convenient way to chain http handlers.
Package chain provides a convenient way to chain http handlers.

Jump to

Keyboard shortcuts

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