IConfig is an interface that has to be implemented by Config and its nested structs. It provides a clear and granular way to sanitize and validate the configuration.
| 31 | // structs. It provides a clear and granular way to sanitize and validate |
| 32 | // the configuration. |
| 33 | type IConfig interface { |
| 34 | // Sanitize methods should be used to set defaults. |
| 35 | Sanitize() error |
| 36 | |
| 37 | // Validate method should be used to find configuration errors. |
| 38 | Validate() error |
| 39 | } |
| 40 | |
| 41 | const ( |
| 42 | // SyncReplicationMode enables sync replication mode which means that the |
no outgoing calls
no test coverage detected