Documentation ¶
Index ¶
Constants ¶
View Source
const UserVotedPostEventDataType = "user_voted_post"
View Source
const UserVotedTopic = "user-voted"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
func (*Event) UnmarshalJSON ¶
type EventData ¶
type EventData interface{}
func UnmarshalUserVotedPostEventData ¶
func UnmarshalUserVotedPostEventData(data json.RawMessage) (EventData, error)
type EventDataParser ¶
type EventDataParser func(data json.RawMessage) (EventData, error)
type Events ¶
func (*Events) PublishUserVotedPostEvent ¶
func (e *Events) PublishUserVotedPostEvent(ctx context.Context, data *UserVotedPostEventData) error
Click to show internal directories.
Click to hide internal directories.