Documentation ¶
Index ¶
- type HttpStatus
- type Status
- func Any(err error, v ...interface{}) Status
- func BadGateway(v ...interface{}) Status
- func BadRequest(v ...interface{}) Status
- func Forbidden(v ...interface{}) Status
- func InternalServerError(v ...interface{}) Status
- func New(code int, v ...interface{}) Status
- func OK(v ...interface{}) Status
- func Unauthorized(v ...interface{}) Status
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 ¶
func BadGateway ¶
func BadGateway(v ...interface{}) Status
func BadRequest ¶
func BadRequest(v ...interface{}) Status
func InternalServerError ¶
func InternalServerError(v ...interface{}) Status
func Unauthorized ¶
func Unauthorized(v ...interface{}) Status
Click to show internal directories.
Click to hide internal directories.