customResp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 4 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 {
	Data    interface{} `json:"data"`
	Message string      `json:"message"`
	// contains filtered or unexported fields
}

func New

func New(ctx *fiber.Ctx) *Response

func (*Response) Send

func (r *Response) Send(arg ...string) (resp error)

func (*Response) SetData

func (r *Response) SetData(data interface{}) *Response

func (*Response) SetErr

func (r *Response) SetErr(err error) *Response

func (*Response) SetHttpCode

func (r *Response) SetHttpCode(httpCode int) *Response

func (*Response) SetMessage

func (r *Response) SetMessage(message string) *Response

Jump to

Keyboard shortcuts

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