app

package
v0.0.0-...-2bff06c Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterReqDef

func ClusterReqDef(clusterReq model.ClusterReq)

func ClusterReqValidate

func ClusterReqValidate(req model.ClusterReq) error

func ExecutHTTP

func ExecutHTTP(method string, url string, body interface{}, result interface{}) (*resty.Response, error)

func NodeReqValidate

func NodeReqValidate(req model.NodeReq) error

func Send

func Send(c echo.Context, httpCode int, json interface{}) error

func SendMessage

func SendMessage(c echo.Context, httpCode int, msg string) error

func Validate

func Validate(c echo.Context, params []string) error

Types

type Status

type Status struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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