Add retry mechanism.

This commit is contained in:
2023-04-07 15:45:43 +01:00
parent e0913f8824
commit 2a628a7da7
6 changed files with 52 additions and 20 deletions
+7
View File
@@ -16,6 +16,12 @@ type cacheStore struct {
enabled bool
}
type retriesConfig struct {
enabled bool
max int
delay int
}
type BaseClient struct {
Logger Logger
LoggerWriter Writer
@@ -28,6 +34,7 @@ type BaseClient struct {
LoggingLevel logger.LogLevel
LoggerColorful bool
validate bool
retries retriesConfig
}
type Query struct {