Skip to content

Commit

Permalink
nip86: structured response types.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Jul 8, 2024
1 parent ad022f7 commit a95de1d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nip86/responses.go
Original file line number Diff line number Diff line change
@@ -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"`
}

0 comments on commit a95de1d

Please sign in to comment.