add nip86 (relay management API) types.

This commit is contained in:
fiatjaf
2024-07-08 09:00:04 -03:00
parent ccdab0fa6b
commit ad022f7c80
2 changed files with 282 additions and 0 deletions

11
nip86/types.go Normal file
View File

@@ -0,0 +1,11 @@
package nip86
type Request struct {
Method string `json:"method"`
Params []any `json:"params"`
}
type Response struct {
Result any `json:"result"`
Error string `json:"error,omitempty"`
}