server

package
v2.2.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFetchRequest

func DecodeFetchRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) kithttp.DecodeRequestFunc

DecodeFetchRequest returns a go-kit DecodeRequestFunc suitable for decoding fetcher fetch requests.

func EncodeFetchError

func EncodeFetchError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(err error) goahttp.Statuser) kithttp.ErrorEncoder

EncodeFetchError returns a go-kit EncodeResponseFunc suitable for encoding errors returned by the fetcher fetch endpoint.

func EncodeFetchResponse

func EncodeFetchResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) kithttp.EncodeResponseFunc

EncodeFetchResponse returns a go-kit EncodeResponseFunc suitable for encoding fetcher fetch responses.

func MountFetchHandler

func MountFetchHandler(mux goahttp.Muxer, h http.Handler)

MountFetchHandler configures the mux to serve the "fetcher" service "fetch" endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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