mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-12 09:51:51 +02:00
nip86: structured response types.
This commit is contained in:
parent
ad022f7c80
commit
a95de1dc8a
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"`
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user