remove unnecessary json tags from cc5979c.

This commit is contained in:
fiatjaf
2023-08-21 15:53:03 -03:00
parent 6155cf4059
commit 61cd3130fd

View File

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