message

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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
	ErrOverrideEnvironmentArgs             = 400015
	ErrAbsoluteLogFilePath                 = 400016
	ErrInitLogger                          = 400017
	ErrRotateLogFile                       = 400018
	ErrBaseDir                             = 400019
	ErrInitConfig                          = 400020
	ErrCheckServerPid                      = 400021
	ErrCheckServerRunningStatus            = 400022
	ErrServerIsRunning                     = 400023
	ErrStartAsForeground                   = 400024
	ErrSavePidToFile                       = 400025
	ErrKillServerWithPid                   = 400026
	ErrKillServerWithPidFile               = 400027
	ErrGetPidFromPidFile                   = 400028
	ErrSetSid                              = 400029
	ErrRemovePidFile                       = 400030
	ErrNotValidDBAddr                      = 400031
	ErrNotValidDBName                      = 400032
	ErrNotValidDBUser                      = 400033
	ErrNotValidDBPass                      = 400034
	ErrNotValidDBPoolMaxConnections        = 400035
	ErrNotValidDBPoolInitConnections       = 400036
	ErrNotValidDBPoolMaxIdleConnections    = 400037
	ErrNotValidDBPoolMaxIdleTime           = 400038
	ErrNotValidDBPoolKeepAliveInterval     = 400039
	ErrInitConnectionPool                  = 400040
	ErrNotValidServerReadTimeout           = 400041
	ErrNotValidServerWriteTimeout          = 400042
	ErrNotValidServerAddr                  = 400043
	ErrFieldNotExists                      = 400044
	ErrGetRawData                          = 400045
	ErrUnmarshalRawData                    = 400046
	ErrGenerateNewMapWithTag               = 400047
	ErrMarshalData                         = 400048
	ErrTypeConversion                      = 400049
	ErrFieldNotExistsOrWrongType           = 400050
	ErrNotValidTimeLayout                  = 400051
	ErrNotValidTimeDuration                = 400052
	ErrNotValidMetadataTableAnalyzeMinRole = 400053
	ErrNotValidAlertSMTPFormat             = 400054
	ErrNotValidAlertHTTPURL                = 400055
	ErrNotValidAlertConfig                 = 400056
	ErrNotValidHealthcheckAlertOwnerType   = 400057
	ErrEmptySoarBin                        = 400058
	ErrNotValidSoarBin                     = 400059
	ErrEmptySoarConfig                     = 400060
	ErrNotValidSoarConfig                  = 400061
	ErrEmptySoarBlacklist                  = 400062
	ErrNotValidSoarBlacklist               = 400063
)
View Source
const (
	// server
	InfoServerStart      = 200001
	InfoServerStop       = 200002
	InfoServerIsRunning  = 200003
	InfoServerNotRunning = 200004
)
View Source
const DefaultMessageHeader = "DAS"

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, if the first value is error, it will set the error as Err of *Config.ErrMessage

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL