message

package
v0.0.0-...-ddd43b2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 1 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 (
	DebugMetadataGetEnvAll  = 100201
	DebugMetadataGetEnvByID = 100202
	DebugMetadataAddEnv     = 100203
	DebugMetadataUpdateEnv  = 100204

	DebugMetadataGetMYSQLClusterAll  = 100701
	DebugMetadataGetMYSQLClusterByID = 100702
	DebugMetadataAddMYSQLCluster     = 100703
	DebugMetadataUpdateMYSQLCluster  = 100704

	DebugMetadataGetMYSQLServerAll  = 100801
	DebugMetadataGetMYSQLServerByID = 100802
	DebugMetadataAddMYSQLServer     = 100803
	DebugMetadataUpdateMYSQLServer  = 100804

	DebugMetadataGetMiddlewareClusterAll  = 100501
	DebugMetadataGetMiddlewareClusterByID = 100502
	DebugMetadataAddMiddlewareCluster     = 100503
	DebugMetadataUpdateMiddlewareCluster  = 100504

	DebugMetadataGetMiddlewareServerAll  = 100601
	DebugMetadataGetMiddlewareServerByID = 100602
	DebugMetadataAddMiddlewareServer     = 100603
	DebugMetadataUpdateMiddlewareServer  = 100604

	DebugMetadataGetAppSystemAll  = 100301
	DebugMetadataGetAppSystemByID = 100302
	DebugMetadataAddAppSystem     = 100303
	DebugMetadataUpdateAppSystem  = 100304

	DebugMetadataGetUserAll  = 100901
	DebugMetadataGetUserByID = 100902
	DebugMetadataAddUser     = 100903
	DebugMetadataUpdateUser  = 100904

	DebugMetadataGetDbAll  = 100401
	DebugMetadataGetDbByID = 100402
	DebugMetadataAddDb     = 100403
	DebugMetadataUpdateDb  = 100404

	DebugMetadataGetMSAll  = 100601
	DebugMetadataGetMSByID = 100602
	DebugMetadataAddMS     = 100603
	DebugMetadataUpdateMS  = 100604
)
View Source
const (
	// server
	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
	ErrBaseDir                          = 400017
	ErrInitConfig                       = 400018
	ErrCheckServerPid                   = 400019
	ErrCheckServerRunningStatus         = 400020
	ErrServerIsRunning                  = 400021
	ErrStartAsForeground                = 400022
	ErrSavePidToFile                    = 400023
	ErrKillServerWithPid                = 400024
	ErrKillServerWithPidFile            = 400025
	ErrGetPidFromPidFile                = 400026
	ErrSetSid                           = 400027
	ErrRemovePidFile                    = 400028
	ErrNotValidDBAddr                   = 400029
	ErrNotValidDBName                   = 400030
	ErrNotValidDBUser                   = 400031
	ErrNotValidDBPass                   = 400032
	ErrNotValidDBPoolMaxConnections     = 400033
	ErrNotValidDBPoolInitConnections    = 400034
	ErrNotValidDBPoolMaxIdleConnections = 400035
	ErrNotValidDBPoolMaxIdleTime        = 400036
	ErrNotValidDBPoolKeepAliveInterval  = 400037
	ErrInitConnectionPool               = 400038
	ErrNotValidServerReadTimeout        = 400039
	ErrNotValidServerWriteTimeout       = 400040
	ErrNotValidServerAddr               = 400041
	ErrFieldNotExists                   = 400042
	ErrGetRawData                       = 400043
	ErrUnmarshalRawData                 = 400044
	ErrGenerateNewMapWithTag            = 400045
	ErrMarshalService                   = 400046

	ErrMetadataGetEnvAll  = 400201
	ErrMetadataGetEnvByID = 400202
	ErrMetadataAddEnv     = 400203
	ErrMetadataUpdateEnv  = 400204

	ErrMetadataGetMYSQLClusterAll  = 400701
	ErrMetadataGetMYSQLClusterByID = 400702
	ErrMetadataAddMYSQLCluster     = 400703
	ErrMetadataUpdateMYSQLCluster  = 400704

	ErrMetadataGetMYSQLServerAll  = 400801
	ErrMetadataGetMYSQLServerByID = 400802
	ErrMetadataAddMYSQLServer     = 400803
	ErrMetadataUpdateMYSQLServer  = 400804

	ErrMetadataGetMiddlewareClusterAll  = 400501
	ErrMetadataGetMiddlewareClusterByID = 400502
	ErrMetadataAddMiddlewareCluster     = 400503
	ErrMetadataUpdateMiddlewareCluster  = 400504

	ErrMetadataGetMiddlewareServerAll  = 400601
	ErrMetadataGetMiddlewareServerByID = 400602
	ErrMetadataAddMiddlewareServer     = 400603
	ErrMetadataUpdateMiddlewareServer  = 400604

	ErrMetadataGetAppSystemAll  = 400301
	ErrMetadataGetAppSystemByID = 400302
	ErrMetadataAddAppSystem     = 400303
	ErrMetadataUpdateAppSystem  = 400304

	ErrMetadataGetUserAll  = 400901
	ErrMetadataGetUserByID = 400902
	ErrMetadataAddUser     = 400903
	ErrMetadataUpdateUser  = 400904

	ErrMetadataGetDbAll  = 400401
	ErrMetadataGetDbByID = 400402
	ErrMetadataAddDb     = 400403
	ErrMetadataUpdateDb  = 400404

	ErrMetadataGetMSAll  = 400601
	ErrMetadataGetMSByID = 400602
	ErrMetadataAddMS     = 400603
	ErrMetadataUpdateMS  = 400604
)
View Source
const (
	// server
	InfoServerStart      = 200001
	InfoServerStop       = 200002
	InfoServerIsRunning  = 200003
	InfoServerNotRunning = 200004

	InfoMetadataGetEnvAll  = 200201
	InfoMetadataGetEnvByID = 200202
	InfoMetadataAddEnv     = 200203
	InfoMetadataUpdateEnv  = 200204

	InfoMetadataGetMYSQLClusterAll  = 200701
	InfoMetadataGetMYSQLClusterByID = 200702
	InfoMetadataAddMYSQLCluster     = 200703
	InfoMetadataUpdateMYSQLCluster  = 200704

	InfoMetadataGetMYSQLServerAll  = 200801
	InfoMetadataGetMYSQLServerByID = 200802
	InfoMetadataAddMYSQLServer     = 200803
	InfoMetadataUpdateMYSQLServer  = 200804

	InfoMetadataGetMiddlewareClusterAll  = 200501
	InfoMetadataGetMiddlewareClusterByID = 200502
	InfoMetadataAddMiddlewareCluster     = 200503
	InfoMetadataUpdateMiddlewareCluster  = 200504

	InfoMetadataGetMiddlewareServerAll  = 200601
	InfoMetadataGetMiddlewareServerByID = 200602
	InfoMetadataAddMiddlewareServer     = 200603
	InfoMetadataUpdateMiddlewareServer  = 200604

	InfoMetadataGetAppSystemAll  = 200301
	InfoMetadataGetAppSystemByID = 200302
	InfoMetadataAddAppSystem     = 200303
	InfoMetadataUpdateAppSystem  = 200304

	InfoMetadataGetUserAll  = 200901
	InfoMetadataGetUserByID = 200902
	InfoMetadataAddUser     = 200903
	InfoMetadataUpdateUser  = 200904

	InfoMetadataGetDbAll  = 200401
	InfoMetadataGetDbByID = 200402
	InfoMetadataAddDb     = 200403
	InfoMetadataUpdateDb  = 200404

	InfoMetadataGetMSAll  = 200601
	InfoMetadataGetMSByID = 200602
	InfoMetadataAddMS     = 200603
	InfoMetadataUpdateMS  = 200604
)
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

Types

This section is empty.

Jump to

Keyboard shortcuts

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