diff --git a/envelopes.go b/envelopes.go index 57b311f..aa7675a 100644 --- a/envelopes.go +++ b/envelopes.go @@ -54,8 +54,8 @@ type Envelope interface { } type EventEnvelope struct { - SubscriptionID *string `json:"subscription_id"` - Event `json:"event"` + SubscriptionID *string + Event } var ( @@ -266,9 +266,9 @@ func (v CloseEnvelope) MarshalJSON() ([]byte, error) { } type OKEnvelope struct { - EventID string `json:"event_id"` - OK bool `json:"ok"` - Reason *string `json:"reason"` + EventID string + OK bool + Reason *string } func (_ OKEnvelope) Label() string { return "OK" } @@ -307,8 +307,8 @@ func (v OKEnvelope) MarshalJSON() ([]byte, error) { } type AuthEnvelope struct { - Challenge *string `json:"challenge"` - Event Event `json:"event"` + Challenge *string + Event Event } func (_ AuthEnvelope) Label() string { return "AUTH" }