mst

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpStatus

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

func (*HttpStatus) Code

func (s *HttpStatus) Code() int

func (*HttpStatus) Error

func (s *HttpStatus) Error() string

func (*HttpStatus) Msg

func (s *HttpStatus) Msg() string

type Status

type Status interface {
	error
	Code() int
	Msg() string
}

func Any

func Any(err error, v ...interface{}) Status

TODO: v as err

func BadGateway

func BadGateway(v ...interface{}) Status

func BadRequest

func BadRequest(v ...interface{}) Status

func Forbidden

func Forbidden(v ...interface{}) Status

func InternalServerError

func InternalServerError(v ...interface{}) Status

func New

func New(code int, v ...interface{}) Status

func OK

func OK(v ...interface{}) Status

func Unauthorized

func Unauthorized(v ...interface{}) Status

Jump to

Keyboard shortcuts

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