handler

package
v0.0.0-...-d17281b Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(w http.ResponseWriter, r *http.Request) error

Func is an http.Handler that returns an error.

func (Func) ServeHTTP

func (f Func) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler.

type Handler

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

func New

func New(ctx context.Context, cfg *config.Config) (*Handler, error)

func (*Handler) ServeHTTP

func (o *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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