util

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Utils

type Utils struct {
}

func (Utils) Error

func (u Utils) Error(err error) *api.Response

func (Utils) ErrorJson

func (u Utils) ErrorJson(ctx echo.Context, errCode int, err error) error

func (Utils) ErrorWithCode

func (u Utils) ErrorWithCode(code int, err error) *api.Response

func (Utils) Response

func (u Utils) Response(err error) *api.Response

func (Utils) Result

func (u Utils) Result(r *proto.Result) *api.Response

func (Utils) SResult

func (u Utils) SResult(err error) *proto.Result

func (Utils) Success

func (u Utils) Success(data interface{}) *api.Response

Jump to

Keyboard shortcuts

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