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 {
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" }