summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-19 05:44:42 -0600
committerJeff Carr <[email protected]>2024-11-19 05:44:42 -0600
commit11e105ec931e2a190df33fac5de81636097a97f6 (patch)
tree1e2ae91fef6b85778b3038a406cd6ea9029e9f8f /helpers.go
parent24a4b65f268d8a4086cb2f906b1da2efce2799d8 (diff)
save config file worksv0.0.6
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/helpers.go b/helpers.go
index 6bbb1f7..390da5c 100644
--- a/helpers.go
+++ b/helpers.go
@@ -51,3 +51,13 @@ func (m *Machine) Marshal() ([]byte, error) {
func (m *Machine) Unmarshal(data []byte) error {
return proto.Unmarshal(data, m)
}
+
+// marshal to wire
+func (m *Machines) Marshal() ([]byte, error) {
+ return proto.Marshal(m)
+}
+
+// unmarshal from wire
+func (m *Machines) Unmarshal(data []byte) error {
+ return proto.Unmarshal(data, m)
+}