resp

package
v0.0.0-...-8c4cb7d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 Response

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

func Failed

func Failed(ctx *app.RequestContext) *Response

func New

func New(ctx *app.RequestContext) *Response

func Ok

func Ok(ctx *app.RequestContext) *Response

func (*Response) Code

func (resp *Response) Code(code int) *Response

func (*Response) Data

func (resp *Response) Data(data any) *Response

func (*Response) Do

func (resp *Response) Do()

func (*Response) Error

func (resp *Response) Error(err error) *Response

func (*Response) Msg

func (resp *Response) Msg(msg string) *Response

func (*Response) Status

func (resp *Response) Status(status int) *Response

Jump to

Keyboard shortcuts

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