func (e *EventStream) PublishEvent(event empire.Event) error { raw, err := json.Marshal(&Event{ Event: event.Event(), Message: event.String(), Data: event, }) if err != nil { return err } _, err = e.sns.Publish(&sns.PublishInput{ Message: aws.String(string(raw)), TopicArn: aws.String(e.TopicARN), }) return err }
func (e *EventStream) PublishEvent(event empire.Event) error { _, err := fmt.Println(event.String()) return err }