gateway

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeErrorResponse

func MakeErrorResponse(w http.ResponseWriter, err error)

MakeErrorResponse writes error response to http body

Types

type ErrorResponse

type ErrorResponse struct {
	XMLName xml.Name `xml:"Error"`
	Code    int32    `xml:"Code"`
	Message string   `xml:"Message"`
}

ErrorResponse is used in gateway error response

Jump to

Keyboard shortcuts

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