fix: event marshalling

This commit is contained in:
Jon Lundy
2022-08-15 08:05:04 -06:00
parent 2af4652f73
commit 5458d35be0
8 changed files with 27 additions and 50 deletions

View File

@@ -337,10 +337,10 @@ func (e *PostEvent) SetEventMeta(eventMeta event.Meta) {
}
e.eventMeta = eventMeta
}
func (e *PostEvent) MarshalText() ([]byte, error) {
func (e *PostEvent) MarshalBinary() ([]byte, error) {
return json.Marshal(e)
}
func (e *PostEvent) UnmarshalText(b []byte) error {
func (e *PostEvent) UnmarshalBinary(b []byte) error {
return json.Unmarshal(b, e)
}