common

package
v0.0.0-...-6c1762c Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyResponse

type EmptyResponse struct{}

type ErrorResponse

type ErrorResponse struct {
	Code       string `json:"errcode"`
	Message    string `json:"error"`
	HttpStatus int    `json:"http_status"`
}

func BadRequest

func BadRequest(message string) *ErrorResponse

func InternalServerError

func InternalServerError(message string) *ErrorResponse

func MethodNotAllowed

func MethodNotAllowed() *ErrorResponse

func NotFoundError

func NotFoundError() *ErrorResponse

func UnauthorizedError

func UnauthorizedError() *ErrorResponse

Jump to

Keyboard shortcuts

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