diff options
| author | Jeff Carr <[email protected]> | 2024-11-15 20:59:55 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-15 20:59:55 -0600 |
| commit | c10ff123cd90bf13ba737ec5ecb632accbffc7fa (patch) | |
| tree | 36478b45bb422a9aabcfa66da86fd1df248aa298 /helpers.go | |
| parent | 1fc481620f5d4a8b469a02fe5ff7e12871fe309f (diff) | |
sending a machine protobuf
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -42,3 +42,12 @@ func (p *Packages) Unmarshal(data []byte) error { return proto.Unmarshal(data, p) } +// marshal to wire +func (m *Machine) Marshal() ([]byte, error) { + return proto.Marshal(m) +} + +// unmarshal from wire +func (m *Machine) Unmarshal(data []byte) error { + return proto.Unmarshal(data, m) +} |
