mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-10-04 17:40:04 +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 {
|
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" }
|
||||||
|
Reference in New Issue
Block a user