package
0.1.18
Repository: https://github.com/polarpanda611/trinity-micro.git
Documentation: pkg.go.dev

# Packages

Author: Daniel TAN Date: 2021-09-03 12:24:12 LastEditors: Daniel TAN LastEditTime: 2021-09-27 23:09:57 FilePath: /trinity-micro/core/e/example/main.go Description: * @Author: Daniel TAN * @Date: 2021-09-03 12:24:12 * @LastEditors: Daniel TAN * @LastEditTime: 2021-09-09 00:08:32 * @FilePath: /trinity-micro/core/e/example/main.go * @Description: */.

# Functions

No description provided by the author
Logging log func* * @Author: Daniel TAN * @Description: * @Date: 2020-11-24 09:51:48 * @LastEditors: Daniel TAN * @param {*logrus.Entry} logger * @param {error} err * @return {*} */.
create a http error from the eror.
NewError new error* * @Author: Daniel TAN * @Description: * @Date: 2020-11-23 19:25:16 * @LastEditors: Daniel TAN * @param {LogLevel} loglevel * @param {string} msg * @param {error} err * @return {*} */.

# Constants

ErrAdvisoryLock* * @Author: Daniel TAN * @Description: when trying to lock with advisory error */.
ErrAdvisoryLock* * @Author: Daniel TAN * @Description:when trying to unlock with advisory error */.
ErrDBUpdateZeroLine* * @Author: Daniel TAN * @Description: 0 rows affected when update the record */.
ErrDecodeRequestBody* * @Author: Daniel TAN * @Description:error when decode the request body */.
ErrDecodeResponseBody* * @Author: Daniel TAN * @Description: when read third party response, we met unexpected error while decode the response body */.
ErrDIParam* * @Author: Daniel TAN * @Description:error when trying to di the param */.
ErrExecuteSQL* * @Author: Daniel TAN * @Description: when execute the sql, met unexpected error */.
ErrInvalidRequest* * @Author: Daniel TAN * @Description: when calling third party API respond with unsuccessful error and without err msg */.
ErrInternalServer* * @Author: Daniel TAN * @Description: the default error, which is unexpected from the developers */.
ErrInvalidRequest* * @Author: Daniel TAN * @Description: when post body, query param , path param invalid, post body validation error */.
Error err level.
500 error.
ErrReadRequestBody* * @Author: Daniel TAN * @Description: when read request body, met unexpected error */.
ErrReadResponseBody* * @Author: Daniel TAN * @Description: when read third party response, we met unexpected error while reading the response body */.
ErrRecordNotFound* * @Author: Daniel TAN * @Description: when http query, http body has some resource not found , return this error * @Description: for example, post {"store":"112201"}, the store not exist */.
ErrResourceNotFound* * @Author: Daniel TAN * @Description: only when get /{id}, the id not found, we response this error */.
No description provided by the author
ErrVertexAccessDeniedException* * @Author: Daniel TAN * @Description: when calling vertex , the auth info is wrong caused the access denied */.
ErrVertexApplicationException* * @Author: Daniel TAN * @Description: when calling vertex, the content is invalid */.
ErrVertexInvalidAddressException* * @Author: Daniel TAN * @Description: when calling vertex, the address info is invalid */.
ErrVertexInvalidCountryException* * @Author: Daniel TAN * @Description: when calling vertex, there country provided is invalid */.
ErrVertexInvalidTaxAreaIdException* * @Author: Daniel TAN * @Description: when calling vertex, the tax area id info is invalid */.
ErrVertexNumberFormatException* * @Author: Daniel TAN * @Description: when calling vertex, the number field invalid */.
ErrVertexUnknownException* * @Author: Daniel TAN * @Description: when calling vertex, there has un-caught error */.
Info info level.
Warn warn level.

# Interfaces

WrapError wrap err.

# Type aliases

LogLevel log level.