codes

package
v0.0.1-20230524-0001 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ErrCodeAlreadyConnected = 104
View Source
const ErrCodeAlreadyConnecting = 105
View Source
const ErrCodeClientIsDisabled = 100
View Source
const ErrCodeConnPoolNilNoConnectionFound = 209
View Source
const ErrCodeDbClientInstanceNameEmpty = 212
View Source
const ErrCodeDbInstanceConfigurationIsMissing = 214
View Source
const ErrCodeDbInstanceIsMissing = 210
View Source
const ErrCodeDefaultDbInstanceNameIsEmpty = 211
View Source
const ErrCodeDriverNoDefaultConfigFound = 215
View Source
const ErrCodeFailedToConnectToDB = 101
View Source
const ErrCodeFailedToFindAnActiveConnectionPool = 200

------------ DB RESOLVER-----------------\\

View Source
const ErrCodeFailedToGenerateResolverMonitoringGoroutine = 201

Resolver connections monitoring

View Source
const ErrCodeFailedToGenerateResolversManagerMonitoringGoroutine = 203

DB Client Resolvers manager

View Source
const ErrCodeFailedToRunResolverMonitoringGoroutine = 202
View Source
const ErrCodeFailedToRunResolversManagerMonitoringGoroutine = 204
View Source
const ErrCodeFailedToSetDefaultValuesToConsecutivePolicy = 114
View Source
const ErrCodeFailedToSetDefaultValuesToLoadBalancingPolicy = 115
View Source
const ErrCodeFailedToSetDefaultValuesToRandomPolicy = 116
View Source
const ErrCodeFailedToSetDefaultValuesToRoundRobinPolicy = 117
View Source
const ErrCodeFailedToStartConnMonitoring = 112
View Source
const ErrCodeFailedToStartConnectionsMonitoringForResolver = 206
View Source
const ErrCodeFailedToStartResolversMonitoring = 207
View Source
const ErrCodeFailedToUseDBResolverPlugin = 113
View Source
const ErrCodeInvalidDB = 102
View Source
const ErrCodeInvalidPolicyName = 118
View Source
const ErrCodeIsDisconnecting = 108
View Source
const ErrCodeIsReconnecting = 110
View Source
const ErrCodeNoActiveMasters = 205
View Source
const ErrCodeNoDefinedConnections = 103
View Source
const ErrCodeNoResolversHaveBeenFound = 216
View Source
const ErrCodeNoSourcesHaveBeenFoundForAnyResolver = 218
View Source
const ErrCodeNoSourcesHaveBeenFoundForResolver = 217
View Source
const ErrCodeNotConnected = 109
View Source
const ErrCodeReconnectDisabled = 111
View Source
const ErrCodeRetryFailed = 107
View Source
const ErrCodeRetryTimesExhaustedForSearchActiveResolvers = 208
View Source
const ErrCodeTerminating = 106

Variables

View Source
var ErrAlreadyConnected = define.Err(ErrCodeAlreadyConnected, "already connected")
View Source
var ErrAlreadyConnecting = define.Err(ErrCodeAlreadyConnecting, "already connecting")
View Source
var ErrClientIsDisabled = define.Err(ErrCodeClientIsDisabled, "database client is disabled -> check your configuration for field: 'is_enabled'")
View Source
var ErrConnPoolNilNoConnectionFound = define.Err(ErrCodeConnPoolNilNoConnectionFound, "no active masters (db resolvers), check error types...")
View Source
var ErrDbClientInstanceNameEmpty = define.Err(ErrCodeDbClientInstanceNameEmpty, "db client instance name is empty")
View Source
var ErrDbInstanceConfigurationIsMissing = define.Err(ErrCodeDbInstanceConfigurationIsMissing, "db client instance configuration is missing")
View Source
var ErrDbInstanceIsMissing = define.Err(ErrCodeDbInstanceIsMissing, "db instance is missing")
View Source
var ErrDefaultDbInstanceNameIsEmpty = define.Err(ErrCodeDefaultDbInstanceNameIsEmpty, "default db instance name is empty")
View Source
var ErrDriverNoDefaultConfigFound = define.Err(ErrCodeDriverNoDefaultConfigFound, "driver hasn't any default config")
View Source
var ErrFailedToConnectToDB = define.Err(ErrCodeFailedToConnectToDB, "failed to connect to the db")
View Source
var ErrFailedToFindAnActiveConnectionPool = define.Err(ErrCodeFailedToFindAnActiveConnectionPool, "failed to find an active/restored connection pool")
View Source
var ErrFailedToGenerateResolverMonitoringGoroutine = define.Err(ErrCodeFailedToGenerateResolverMonitoringGoroutine, "failed to generate resolver connection monitoring goroutine")

Resolver connections monitoring

View Source
var ErrFailedToGenerateResolversManagerMonitoringGoroutine = define.Err(ErrCodeFailedToGenerateResolversManagerMonitoringGoroutine, "failed to generate resolvers manager monitoring goroutine")

DB Client Resolvers manager

View Source
var ErrFailedToRunResolverMonitoringGoroutine = define.Err(ErrCodeFailedToRunResolverMonitoringGoroutine, "failed to run resolver connection monitoring goroutine")
View Source
var ErrFailedToRunResolversManagerMonitoringGoroutine = define.Err(ErrCodeFailedToRunResolversManagerMonitoringGoroutine, "failed to run resolvers manager monitoring goroutine")
View Source
var ErrFailedToSetDefaultValuesToConsecutivePolicy = define.Err(ErrCodeFailedToSetDefaultValuesToConsecutivePolicy, "failed to set default values to 'Consecutive' policy")

Policies

View Source
var ErrFailedToSetDefaultValuesToLoadBalancingPolicy = define.Err(ErrCodeFailedToSetDefaultValuesToLoadBalancingPolicy, "failed to set default values to 'Load Balancing' policy")
View Source
var ErrFailedToSetDefaultValuesToRandomPolicy = define.Err(ErrCodeFailedToSetDefaultValuesToRandomPolicy, "failed to set default values to 'Random' policy")
View Source
var ErrFailedToSetDefaultValuesToRoundRobinPolicy = define.Err(ErrCodeFailedToSetDefaultValuesToRoundRobinPolicy, "failed to set default values to 'Round Robin' policy")
View Source
var ErrFailedToStartConnMonitoring = define.Err(ErrCodeFailedToStartConnMonitoring, "failed to start connection monitoring...")
View Source
var ErrFailedToStartConnectionsMonitoringForResolver = define.Err(ErrCodeFailedToStartConnectionsMonitoringForResolver, "failed to start connections monitoring for resolver")
View Source
var ErrFailedToStartResolversMonitoring = define.Err(ErrCodeFailedToStartResolversMonitoring, "failed to start resolvers monitoring")
View Source
var ErrFailedToUseDBResolverPlugin = define.Err(ErrCodeFailedToUseDBResolverPlugin, "failed to use db resolver plugin...")
View Source
var ErrInvalidDB = define.Err(ErrCodeInvalidDB, gorm.ErrInvalidDB.Error())
View Source
var ErrInvalidPolicyName = define.Err(ErrCodeInvalidPolicyName, "invalid policy name")
View Source
var ErrIsDisconnecting = define.Err(ErrCodeIsDisconnecting, "is disconnecting...")
View Source
var ErrIsReconnecting = define.Err(ErrCodeIsReconnecting, "is reconnecting...")
View Source
var ErrNoActiveMasters = define.Err(ErrCodeNoActiveMasters, "no active master resolvers")
View Source
var ErrNoDefinedConnections = define.Err(ErrCodeNoDefinedConnections, "no defined connections")
View Source
var ErrNoResolversHaveBeenFound = define.Err(ErrCodeNoResolversHaveBeenFound, "no resolvers have have been defined/found in the config")
View Source
var ErrNoSourcesHaveBeenFoundForAnyResolver = define.Err(ErrCodeNoSourcesHaveBeenFoundForAnyResolver, "no sources have been defined/found for any resolver in the config")
View Source
var ErrNoSourcesHaveBeenFoundForResolver = define.Err(ErrCodeNoSourcesHaveBeenFoundForResolver, "no sources have been defined/found for the resolver in the config")
View Source
var ErrNotConnected = define.Err(ErrCodeNotConnected, "not connected...")
View Source
var ErrReconnectDisabled = define.Err(ErrCodeReconnectDisabled, "reconnect disabled...")
View Source
var ErrRetryFailed = define.Err(ErrCodeRetryFailed, "retry failed...")
View Source
var ErrRetryTimesExhaustedForSearchActiveResolvers = define.Err(ErrCodeRetryTimesExhaustedForSearchActiveResolvers, "retry times exhausted for search active resolvers")
View Source
var ErrTerminating = define.Err(ErrCodeTerminating, "context cancel or done has been called, terminating...")

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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