httperrors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 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

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

ErrorProcessor ...

func NewErrorProcessor

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

NewErrorProcessor ...

func (*ErrorProcessor) Decode

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

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

func (*ErrorProcessor) Encode

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