server

package
v2.2.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeArchiveRequest

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

DecodeArchiveRequest returns a go-kit DecodeRequestFunc suitable for decoding archiver archive requests.

func DecodeReadRequest

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

DecodeReadRequest returns a go-kit DecodeRequestFunc suitable for decoding archiver read requests.

func EncodeArchiveResponse

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

EncodeArchiveResponse returns a go-kit EncodeResponseFunc suitable for encoding archiver archive responses.

func EncodeReadError

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

EncodeReadError returns a go-kit EncodeResponseFunc suitable for encoding errors returned by the archiver read endpoint.

func EncodeReadResponse

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

EncodeReadResponse returns a go-kit EncodeResponseFunc suitable for encoding archiver read responses.

func MountArchiveHandler

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

MountArchiveHandler configures the mux to serve the "archiver" service "archive" endpoint.

func MountReadHandler

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

MountReadHandler configures the mux to serve the "archiver" service "read" endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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