Documentation ¶
Overview ¶
Copyright © 2020 Romber Li <romber2001@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
View Source
const ( ErrPrintHelpInfo = 400001 ErrEmptyLogFileName = 400002 ErrNotValidLogFileName = 400003 ErrNotValidLogLevel = 400004 ErrNotValidLogFormat = 400005 ErrNotValidLogMaxSize = 400006 ErrNotValidLogMaxDays = 400007 ErrNotValidLogMaxBackups = 400008 ErrNotValidServerPort = 400009 ErrNotValidPidFile = 400010 ErrValidateConfig = 400011 ErrInitDefaultConfig = 400012 ErrReadConfigFile = 400013 ErrOverrideCommandLineArgs = 400014 ErrAbsoluteLogFilePath = 400015 ErrInitLogger = 400016 ErrRotateLogFile = 400017 ErrBaseDir = 400018 ErrInitConfig = 400019 ErrCheckServerPid = 400020 ErrCheckServerRunningStatus = 400021 ErrServerIsRunning = 400022 ErrStartAsForeground = 400023 ErrSavePidToFile = 400024 ErrKillServerWithPid = 400025 ErrKillServerWithPidFile = 400026 ErrGetPidFromPidFile = 400027 ErrSetSid = 400028 ErrRemovePidFile = 400029 ErrNotValidDBAddr = 400030 ErrNotValidDBName = 400031 ErrNotValidDBUser = 400032 ErrNotValidDBPass = 400033 ErrNotValidDBPoolMaxConnections = 400034 ErrNotValidDBPoolInitConnections = 400035 ErrNotValidDBPoolMaxIdleConnections = 400036 ErrNotValidDBPoolMaxIdleTime = 400037 ErrNotValidDBPoolMaxWaitTime = 400038 ErrNotValidDBPoolMaxRetryCount = 400039 ErrNotValidDBPoolKeepAliveInterval = 400040 ErrInitConnectionPool = 400041 ErrNotValidServerReadTimeout = 400042 ErrNotValidServerWriteTimeout = 400043 ErrNotValidServerAddr = 400044 ErrNotValidServerRouterAlternativeBasePath = 400045 ErrNotValidServerRouterHTTPErrorCode = 400046 ErrFieldNotExists = 400047 ErrGetRawData = 400048 ErrUnmarshalRawData = 400049 ErrGenerateNewMapWithTag = 400050 ErrMarshalData = 400051 ErrTypeConversion = 400052 ErrFieldNotExistsOrWrongType = 400053 ErrNotValidTimeLayout = 400054 ErrNotValidTimeDuration = 400055 ErrGetResponseCode = 400056 ErrSetResponseCode = 400057 ErrGinRecovery = 400058 ErrNotValidFilePath = 400059 ErrOverrideConfigByCLI = 400060 ErrInitDerivedConfig = 400061 ErrSortAddrs = 400062 )
View Source
const ( // server InfoServerStart = 200001 InfoServerStop = 200002 InfoServerIsRunning = 200003 InfoServerNotRunning = 200004 )
View Source
const DefaultMessageHeader = "DBO"
Variables ¶
View Source
var Messages = map[int]*config.ErrMessage{}
Functions ¶
func NewMessage ¶
func NewMessage(code int, values ...interface{}) *config.ErrMessage
NewMessage returns *config.ErrMessage with specified values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.