handler

package
v0.0.0-...-8336b8e Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	StatusCode int         `json:"status_code"`
	Message    string      `json:"message"`
	Data       interface{} `json:"data,omitempty"`
}

func RespFailed

func RespFailed(err error) *BaseResp

func RespFailedWithData

func RespFailedWithData(err error, data interface{}) *BaseResp

func RespSuccess

func RespSuccess() *BaseResp

func RespSuccessWithData

func RespSuccessWithData(data interface{}) *BaseResp

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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