httperrors

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package httperrors ... CODE GENERATED AUTOMATICALLY DO NOT EDIT

Package httperrors ... CODE GENERATED AUTOMATICALLY DO NOT EDIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientErrorProcessor

type ClientErrorProcessor struct {
	// contains filtered or unexported fields
}

ClientErrorProcessor ...

func NewClientErrorProcessor

func NewClientErrorProcessor(defaultCode int, defaultMessage string) *ClientErrorProcessor

NewClientErrorProcessor ...

func (*ClientErrorProcessor) Decode

Decode reads a Service error from the given *http.Response.

func (*ClientErrorProcessor) Encode

func (e *ClientErrorProcessor) Encode(ctx context.Context, r *fasthttp.Response, err error)

Encode writes a svc error to the given http.ResponseWriter.

type ErrorProcessor added in v0.1.1

type ErrorProcessor struct {
	// contains filtered or unexported fields
}

ErrorProcessor ...

func NewErrorProcessor added in v0.1.1

func NewErrorProcessor(errors map[string]string) *ErrorProcessor

NewErrorProcessor ...

func (*ErrorProcessor) Decode added in v0.1.1

func (e *ErrorProcessor) Decode(r *fasthttp.Response) error

Decode reads a Service error from the given *http.Response.

func (*ErrorProcessor) Encode added in v0.1.1

func (e *ErrorProcessor) Encode(ctx context.Context, r *fasthttp.Response, err error)

Encode writes a svc error to the given http.ResponseWriter.

Jump to

Keyboard shortcuts

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