mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-17 19:13:56 +02:00
nip86: structured response types.
This commit is contained in:
16
nip86/responses.go
Normal file
16
nip86/responses.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package nip86
|
||||
|
||||
type IDReason struct {
|
||||
ID string `json:"id"`
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
type PubKeyReason struct {
|
||||
PubKey string `json:"pubkey"`
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
type IPReason struct {
|
||||
IP string `json:"ip"`
|
||||
Reason string `json:"reason"`
|
||||
}
|
Reference in New Issue
Block a user