http

package
v0.0.0-...-f691fa7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRouting = errors.New("bad routing")
)

Functions

func NewService

func NewService(
	svcEndpoints transport.Endpoints, options []kithttp.ServerOption, logger log.Logger,
) http.Handler

NewService wires Go kit endpoints to the HTTP transport.

Types

type Errorer

type Errorer interface {
	Error() error
}

Errorer is implemented by all concrete response types that may contain errors. It allows us to change the HTTP response code without needing to trigger an endpoint (transport-level) error.

Jump to

Keyboard shortcuts

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