Skip to content

Add an Event interface #1154

@cco3

Description

@cco3

Right now Event.ParsePayload returns interface{}, but it would be nice if it returned a more specific interface with the common fields of events.

It looks like using the Event struct fully is deprecated, and now it is just used to load up with the payload before calling parse.

I propose replacing the Event struct with an Event interface and then making ParsePayload a stand alone function rather than a receiver function.

Does this sound reasonable?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions