meghttp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Response response

Functions

This section is empty.

Types

type MegError

type MegError struct {
	Raw       error
	ErrorCode string
	HTTPCode  int
	Message   string
	IsSentry  bool
}

func ErrCreate

func ErrCreate(err error, module string) MegError

func ErrDelete

func ErrDelete(err error, module string) MegError

func ErrGet

func ErrGet(err error, module string) MegError

func ErrInvalidParams

func ErrInvalidParams(err error, module string) MegError

func ErrNoPermission

func ErrNoPermission() MegError

func ErrNotFound

func ErrNotFound(err error, module string) MegError

func ErrUnauthorized

func ErrUnauthorized(err error, module string) MegError

func ErrUpdate

func ErrUpdate(err error, module string) MegError

func NewError

func NewError(err error, httpCode int, errCode string, message string, isSentry bool) MegError

func (MegError) Error

func (e MegError) Error() string

func (MegError) Is

func (e MegError) Is(target error) bool

Jump to

Keyboard shortcuts

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