handlers

package
v0.0.0-...-596b4b5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscardSlog

func DiscardSlog(ctx context.Context) context.Context

Types

type Controller

type Controller struct {
	Metrics *statsd.Client
	Version string
}

func (*Controller) GetD2SVGHandler

func (c *Controller) GetD2SVGHandler(rw http.ResponseWriter, req *http.Request)

func (*Controller) GetInfoHandler

func (c *Controller) GetInfoHandler(rw http.ResponseWriter, req *http.Request)

func (*Controller) StatsdMiddleware

func (c *Controller) StatsdMiddleware(f http.HandlerFunc) http.HandlerFunc

type InfoResponse

type InfoResponse struct {
	Status  string `json:"status"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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