package
0.3.9
Repository: https://github.com/zhs007/adacore.git
Documentation: pkg.go.dev

# Functions

AppendString - append string.
BuildLogFilename -.
BuildLogSubFilename -.
ClearLogs - clear logs.
Debug logs a debug message with the given fields.
Error logs a debug message with the given fields.
Fatal logs a message than calls os.Exit(1).
GetCurTime - append string.
HashBuffer - hash buffer.
Info logs a debug message with the given fields.
InitLogger - initializes a thread-safe singleton logger.
JSON - make json to field.
MD5Buffer - hash buffer.
SyncLogger - sync logger.
Warn logs a debug message with the given fields.

# Constants

BigMsgLength -if msg length >= BigMsgLength, the message is big message.
DefaultBaseURL - default baseurl.
DefaultIsAllowTemplateData - Whether to allow templatedata.
DefaultMaxExpireTime - max expire time in seconds.
DefaultResNums - This is the amount of resources available for this role.
DefaultTemplate - This is default template available for this role.
DefaultTemplatesPath - default templates file path.
VERSION - adacore version.

# Variables

ErrAdaCoreClientNoServAddr - There is no ServAddr in AdaCoreClient.
ErrAdaCoreClientNoToken - There is no Token in AdaCoreClient.
ErrAdaCoreDBInvalidHashName - There is invalid hashname in AdaCoreDB.
ErrAdaCoreDBInvalidResList - There is invalid reslist in AdaCoreDB.
ErrAdaRenderClientNoServAddr - There is no ServAddr in AdaRenderClient.
ErrAdaRenderClientNoToken - There is no Token in AdaRenderClient.
ErrConfigNoAdaRenderServAddr - There is no AdaRenderServAddr in the configuration file.
ErrConfigNoAdaRenderToken - There is no AdaRenderToken in the configuration file.
ErrConfigNoBindAddr - There is no BindAddr in the configuration file.
ErrConfigNoClientTokens - There is no ClientTokens in the configuration file.
ErrConfigNoFilePath - There is no FilePath in the configuration file.
ErrEmptyHTMLData - The HTMLData is empty.
ErrInvalidCurLengthAdaRender - invalid curlength in adarender.
ErrInvalidCurStartAdaRender - invalid curstart in adarender.
ErrInvalidHashDataAdaRender - invalid hashdata in adarender.
ErrInvalidTotalHashDataAdaRender - invalid totalhashdata in adarender.
ErrInvalidTotalLengthAdaRender - invalid totallength in adarender.
ErrNoMarkdownData - The MarkdownData is empty.
ErrServInvalidErrString - The err string is invalid.
ErrServInvalidResult - The result is invalid.
ErrServInvalidToken - This token is invalid.
ErrServNoConfig - The config is invalid.