hello_responses

package
v0.0.0-...-c8f758e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeError

func EncodeError(_ context.Context, err error, w http.ResponseWriter)

EncodeError - Provide those as HTTP errors

func MakeGetHelloResponseEncoder

func MakeGetHelloResponseEncoder(appCtx appcontext.Context) (kithttp.EncodeResponseFunc, error)

Types

type Errorer

type Errorer interface {
	// contains filtered or unexported methods
}

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.

type GetHelloResponse

type GetHelloResponse struct {
	Response []string
}

Jump to

Keyboard shortcuts

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