Skip to content

Instantly share code, notes, and snippets.


azhuox/block8.go Secret

Created December 2, 2020 03:39
What would you like to do?
package meetingevents
import "encoding/json"
type meetingEndedEvent struct {
MeetingID string `json:"meeting_id"`
HostID string `json:"host_id"`
Duration int `json:"duration"`
func (s *EventService) ProcessEvents(rawEvent *RawEvent) error {
switch rawEvent.Type {
case "meeting-ended":
event := meetingEndedEvent{}
_ = json.Unmarshal([]byte(rawEvent.String()), &event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment