concatapi

package module
v0.0.0-...-182a89d Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConcat

func NewConcat(logger *log.Logger) concat.Service

NewConcat returns the concat service implementation.

func RequestDecoder

func RequestDecoder(r *http.Request) goahttp.Decoder

RequestDecoder returns a HTTP request body decoder. The resulting decoder uses the CBOR binary serialization standard if no content type is provided in the request or if the content type explicitly specifies "application/cbor". The implementation also supports decoding JSON, XML and GOB encoded requests when the content type header is set accordingly.

func RequestEncoder

func RequestEncoder(r *http.Request) goahttp.Encoder

RequestEncoder returns a HTTP request encoder that uses CBOR.

func ResponseDecoder

func ResponseDecoder(resp *http.Response) goahttp.Decoder

ResponseDecoder returns a HTTP response decoder that uses CBOR.

func ResponseEncoder

func ResponseEncoder(ctx context.Context, w http.ResponseWriter) goahttp.Encoder

ResponseEncoder always encodes the response with CBOR. See the default Goa ResponseEncoder for implementing content type negotiation if your service needs to support other types of response encodings.

Types

This section is empty.

Directories

Path Synopsis
cmd
gen

Jump to

Keyboard shortcuts

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