Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigInit(file *os.File)
- func ErrorLog(logger zerolog.Logger, method string, appErr *errors.AppError, message string)
- func ErrorLogWithParams(logger zerolog.Logger, method string, appErr *errors.AppError, message string, ...)
- func Errorf(logger zerolog.Logger, r *http.Request, w http.ResponseWriter, code int, ...)
- func ErrorfWithParams(logger zerolog.Logger, r *http.Request, w http.ResponseWriter, code int, ...)
- func HTTPErrorLog(logger zerolog.Logger, r *http.Request, code int, content string, ...)
- func HTTPErrorLogWithParams(logger zerolog.Logger, r *http.Request, code int, content string, ...)
- func HTTPRequestLog(logger zerolog.Logger, r *http.Request, message string)
- func HTTPRequestWithParamsLog(logger zerolog.Logger, r *http.Request, message string, ...)
- func HTTPResponseLog(logger zerolog.Logger, r *http.Request, code int, contentType string, ...)
- func InfoLog(logger zerolog.Logger, method string, message string)
- func InfoLogWithParams(logger zerolog.Logger, method string, message string, params map[string]string)
- func Logger(module string, context context.Context) zerolog.Logger
- func LoggerInit(level string)
- func ToolsAccountGenerateName(fiveCharsMaxPrefix string) string
- func ToolsWalletGenerateName(prefix string) string
- type Configuration
Constants ¶
View Source
const ( MODE_SYSLOG = "SYSLOG" MODE_CONSOLE = "STDOUT" )
Variables ¶
View Source
var ( Config Configuration EOS_URL string )
Functions ¶
func ConfigInit ¶
func ErrorLogWithParams ¶
func Errorf ¶
func Errorf(logger zerolog.Logger, r *http.Request, w http.ResponseWriter, code int, format string, error error, appErr *errors.AppError, a ...interface{})
errorf writes a swagger-compliant error response.
func ErrorfWithParams ¶
func ErrorfWithParams(logger zerolog.Logger, r *http.Request, w http.ResponseWriter, code int, format string, error error, appErr *errors.AppError, params map[string]string, a ...interface{})
errorf writes a swagger-compliant error response.
func HTTPErrorLog ¶
func HTTPErrorLogWithParams ¶
func HTTPResponseLog ¶
func InfoLogWithParams ¶
func LoggerInit ¶
func LoggerInit(level string)
func ToolsAccountGenerateName ¶
generate an EOS compliant account name length < 12 charset: a..z12345
func ToolsWalletGenerateName ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.