service

package
v0.0.0-...-d69904b Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package service combines the other various packages in http-handlers to provide an operations-friendly http.Handler for your application. Including this package will also allow you to dump a full stack trace to stderr by sending your application the SIGUSR1 signal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is an HTTP service.

func New

func New(h http.Handler, onPanic recovery.PanicHandler) Service

New returns a new service-ready handler given an application handler.

This stack application-level metrics, debug endpoints, panic recovery, and request logging, in that order.

func (Service) Close

func (s Service) Close() error

Close stops the service.

func (Service) ServeHTTP

func (s Service) 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