handler

package
v8.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package handler contains the HTTP handlers that serve Vervet Underground responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseDefaultMiddleware

func UseDefaultMiddleware(r chi.Router)

UseDefaultMiddleware configures a chi.Router to use the default middleware in the Vervet Underground service.

Types

type Handler

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

Handler handles Vervet Underground HTTP requests.

func New

func New(cfg *config.ServerConfig, store storage.ReadOnlyStorage, routerOptions ...func(r chi.Router)) *Handler

New returns a new Handler.

func (*Handler) ServeHTTP

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

ServeHTTP implements http.Handler.

Jump to

Keyboard shortcuts

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