http

package
v0.0.0-...-290c2ba Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBadRouting is returned when an expected path variable is missing.
	ErrBadRouting = errors.New("inconsistent mapping between route and handler (programmer error)")
)

Functions

func NewService

func NewService(svcEndpoints svctransport.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