mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-12 12:32:32 +02:00
remove unnecessary json tags from cc5979c
.
This commit is contained in:
14
envelopes.go
14
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" }
|
||||
|
Reference in New Issue
Block a user