Rename replicator config to replica

This commit is contained in:
Ben Johnson
2020-12-23 16:02:38 -07:00
parent 9fe52ce3f5
commit 8d7f5b28a9
2 changed files with 6 additions and 6 deletions

View File

@@ -48,11 +48,11 @@ func ReadConfigFile(filename string) (Config, error) {
}
type DBConfig struct {
Path string `yaml:"path"`
Replicators []*ReplicatorConfig `yaml:"replicators`
Path string `yaml:"path"`
Replicas []*ReplicaConfig `yaml:"replicas"`
}
type ReplicatorConfig struct {
type ReplicaConfig struct {
Type string `yaml:"type"` // "file", "s3"
Name string `yaml:"name"` // name of replicator, optional.
Path string `yaml:"path"` // used for file replicators