router

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrShutdown = errors.New("shutting down")

ErrShutdown .

Functions

func Logger

func Logger() arpc.HandlerFunc

Logger returns the logger middleware.

func Recover

func Recover() arpc.HandlerFunc

Recover returns the recovery middleware handler.

Types

type Graceful

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

Graceful represents a graceful middleware instance.

func (*Graceful) Handler

func (g *Graceful) Handler() arpc.HandlerFunc

Handler returns the graceful middleware handler.

func (*Graceful) Shutdown

func (g *Graceful) Shutdown()

Shutdown stops handling new requests and waits for all current requests to be processed.

Jump to

Keyboard shortcuts

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