webUtils

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK   = "OK"
	FAIL = "FAIL"
)

Variables

This section is empty.

Functions

func WriteErrorEchoServer

func WriteErrorEchoServer(ctx echo.Context, err error, status int) error

Types

type Error

type Error struct {
	Status string `json:"status"`
	Err    string
}

type Success

type Success struct {
	Status string `json:"status"`
	Result interface{}
}

Jump to

Keyboard shortcuts

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