diff options
| author | Jeff Carr <[email protected]> | 2024-10-30 18:10:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-30 18:10:40 -0500 |
| commit | 18053caca8605895c0e6e2f8555c1ffa642a076a (patch) | |
| tree | e8ae67fce227621973c5137b6b59cbdd21589def /helpers.go | |
| parent | 9608bb680f4679d16985f34d227f1bcf8a0d6c87 (diff) | |
events are in cluster.E
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -6,6 +6,7 @@ package virtbuf import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/prototext" + "google.golang.org/protobuf/proto" ) // human readable JSON @@ -77,3 +78,7 @@ func (d *Droplet) UnmarshalJSON(data []byte) error { func (e *Events) UnmarshalJSON(data []byte) error { return protojson.Unmarshal(data, e) } + +func (d *Droplet) Unmarshal(data []byte) error { + return proto.Unmarshal(data, d) +} |
