From 66aa4e9de2e3ab7a62c94cc653d0a884440e982c Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 11 Jul 2022 15:51:24 -0300 Subject: [PATCH] add nip-11 type. --- nip11/types.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nip11/types.go diff --git a/nip11/types.go b/nip11/types.go new file mode 100644 index 0000000..0b150b9 --- /dev/null +++ b/nip11/types.go @@ -0,0 +1,11 @@ +package nip11 + +type RelayInformationDocument struct { + Name string `json:"name"` + Description string `json:"description"` + PubKey string `json:"pubkey"` + Contact string `json:"contact"` + SupportedNIPs []int `json:"supported_nips"` + Software string `json:"software"` + Version string `json:"version"` +}