summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
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)
+}