nip86

package
v0.36.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowEvent

type AllowEvent struct {
	ID     string
	Reason string
}

func (AllowEvent) MethodName

func (_ AllowEvent) MethodName() string

type AllowKind

type AllowKind struct {
	Kind int
}

func (AllowKind) MethodName

func (_ AllowKind) MethodName() string

type AllowPubKey

type AllowPubKey struct {
	PubKey string
	Reason string
}

func (AllowPubKey) MethodName

func (_ AllowPubKey) MethodName() string

type BanEvent

type BanEvent struct {
	ID     string
	Reason string
}

func (BanEvent) MethodName

func (_ BanEvent) MethodName() string

type BanPubKey

type BanPubKey struct {
	PubKey string
	Reason string
}

func (BanPubKey) MethodName

func (_ BanPubKey) MethodName() string

type BlockIP

type BlockIP struct {
	IP     net.IP
	Reason string
}

func (BlockIP) MethodName

func (_ BlockIP) MethodName() string

type ChangeRelayDescription

type ChangeRelayDescription struct {
	Description string
}

func (ChangeRelayDescription) MethodName

func (_ ChangeRelayDescription) MethodName() string

type ChangeRelayIcon

type ChangeRelayIcon struct {
	IconURL string
}

func (ChangeRelayIcon) MethodName

func (_ ChangeRelayIcon) MethodName() string

type ChangeRelayName

type ChangeRelayName struct {
	Name string
}

func (ChangeRelayName) MethodName

func (_ ChangeRelayName) MethodName() string

type DisallowKind

type DisallowKind struct {
	Kind int
}

func (DisallowKind) MethodName

func (_ DisallowKind) MethodName() string

type IDReason

type IDReason struct {
	ID     string `json:"id"`
	Reason string `json:"reason"`
}

type IPReason

type IPReason struct {
	IP     string `json:"ip"`
	Reason string `json:"reason"`
}

type ListAllowedKinds

type ListAllowedKinds struct{}

func (ListAllowedKinds) MethodName

func (_ ListAllowedKinds) MethodName() string

type ListAllowedPubKeys

type ListAllowedPubKeys struct{}

func (ListAllowedPubKeys) MethodName

func (_ ListAllowedPubKeys) MethodName() string

type ListBannedEvents

type ListBannedEvents struct{}

func (ListBannedEvents) MethodName

func (_ ListBannedEvents) MethodName() string

type ListBannedPubKeys

type ListBannedPubKeys struct{}

func (ListBannedPubKeys) MethodName

func (_ ListBannedPubKeys) MethodName() string

type ListBlockedIPs

type ListBlockedIPs struct{}

func (ListBlockedIPs) MethodName

func (_ ListBlockedIPs) MethodName() string

type ListEventsNeedingModeration

type ListEventsNeedingModeration struct{}

func (ListEventsNeedingModeration) MethodName

func (_ ListEventsNeedingModeration) MethodName() string

type MethodParams

type MethodParams interface {
	MethodName() string
}

func DecodeRequest

func DecodeRequest(req Request) (MethodParams, error)

type PubKeyReason

type PubKeyReason struct {
	PubKey string `json:"pubkey"`
	Reason string `json:"reason"`
}

type Request

type Request struct {
	Method string `json:"method"`
	Params []any  `json:"params"`
}

type Response

type Response struct {
	Result any    `json:"result,omitempty"`
	Error  string `json:"error,omitempty"`
}

type SupportedMethods

type SupportedMethods struct{}

func (SupportedMethods) MethodName

func (_ SupportedMethods) MethodName() string

type UnblockIP

type UnblockIP struct {
	IP     net.IP
	Reason string
}

func (UnblockIP) MethodName

func (_ UnblockIP) MethodName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL