Documentation ¶
Index ¶
- Variables
- func BindAndValidate(logger g.LoggerType, c echo.Context, reqParam interface{}) error
- func BuildUrl(path string) string
- func DecodeBody(req *http.Request, out interface{}) error
- func DecryptPassword(password string, rsaPrivateKey string) (realPwd string, err error)
- func DecryptPasswordSupportNoRsaKey(password string, rsaPrivateKey string) (realPwd string, err error)
- func InvokeApiWithKvData(method, uri string, args map[string]string, respStruct interface{}, ...) (err error)
- func InvokeHttpUrlWithBody(method, url string, body []byte, respStruct interface{}) error
- func InvokePostApiWithJson(url string, reqJson []byte, respStruct interface{}) error
- func IsEmpty(value interface{}) bool
- func NewLogger() g.LoggerType
- type CustomValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var DtleDriver *dtle.Driver
View Source
var NomadHost, ApiAddr, ConsulAddr string
Functions ¶
func BindAndValidate ¶
func BindAndValidate(logger g.LoggerType, c echo.Context, reqParam interface{}) error
func DecodeBody ¶
decodeBody is used to decode a JSON request body
func DecryptPassword ¶
func InvokeApiWithKvData ¶
func InvokeHttpUrlWithBody ¶
func InvokePostApiWithJson ¶
func NewLogger ¶
func NewLogger() g.LoggerType
Types ¶
type CustomValidator ¶
type CustomValidator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator() *CustomValidator
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
Click to show internal directories.
Click to hide internal directories.