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 /common.go | |
| parent | 920eb20a447e1b6c08f433ac1857263dc21da41d (diff) | |
moved to go.wit.com/lib/debian
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common.go b/common.go new file mode 100644 index 0000000..54bc045 --- /dev/null +++ b/common.go @@ -0,0 +1,15 @@ +// Copyright 1994-2025 WIT.COM Inc Licensed GPL 3.0 + +package zoopb + +import "go.wit.com/lib/config" + +var pbfile string = "/var/cache/zookeeper/machine" + +func (pb *Machine) Save() error { + return config.SavePB(pb, pbfile) +} + +func (pb *Machine) Load() error { + return config.LoadFile(pb, pbfile) +} |
