fix: event marshalling

This commit is contained in:
Jon Lundy
2022-08-14 10:56:00 -06:00
parent ad57c89945
commit 353b15ce61
7 changed files with 87 additions and 38 deletions

View File

@@ -293,6 +293,13 @@ func (e *PostEvent) SetEventMeta(eventMeta event.Meta) {
}
e.eventMeta = eventMeta
}
func (e *PostEvent) MarshalText() ([]byte, error) {
return json.Marshal(e)
}
func (e *PostEvent) UnmarshalText(b []byte) error {
return json.Unmarshal(b, e)
}
func (e *PostEvent) String() string {
var b bytes.Buffer