diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 09:01:54 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 09:01:54 -0500 |
| commit | d110888f81e357010b71a0a0286ba298fcd452c5 (patch) | |
| tree | 1905eb28f1da7217b6e7217713bf97dc71b0b90f /config.go | |
| parent | 920eb20a447e1b6c08f433ac1857263dc21da41d (diff) | |
moved to go.wit.com/lib/debian
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/config.go b/config.go deleted file mode 100644 index 808722c..0000000 --- a/config.go +++ /dev/null @@ -1,23 +0,0 @@ -package zoopb - -// functions to import and export the protobuf -// data to and from config files - -import ( - "go.wit.com/lib/config" -) - -// writes out the cluster information it seperate files -// to make it humanly possible to hand edit things as needed -func (m *Machines) ConfigSave(fullname string) error { - return config.SavePB(m, fullname) -} - -func (m *Machines) ConfigLoad() (string, error) { - fullname, err := config.LoadPB(m, "/var/lib", "machines") - if err != nil { - // log.Info("zoopb.ConfigLoad() failed", err, fullname) - } - fullname, err = config.LoadPB(m, "zookeeper", "machines") - return fullname, err -} |
