errconv

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package errconv provides conversion for error response for all services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMiddleware

func NewMiddleware(log *log.Logger) muxhttp.Middleware

NewMiddleware handles errors coming out of the call chain. It detects normal application errors which are used to respond to the cli in a uniform way. Unexpected errors (status >= 500) are logged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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