MCPcopy
hub / github.com/olric-data/olric / IConfig

Interface IConfig

config/config.go:33–39  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

31// structs. It provides a clear and granular way to sanitize and validate
32// the configuration.
33type 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
41const (
42 // SyncReplicationMode enables sync replication mode which means that the

Implementers 6

Authenticationconfig/authentication.go
Engineconfig/engine.go
DMapsconfig/dmaps.go
Configconfig/config.go
DMapconfig/dmap.go
Clientconfig/client.go

Calls

no outgoing calls

Tested by

no test coverage detected