nip86

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Unlicense Imports: 6 Imported by: 0

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 no
}

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 no
}

func (DisallowKind) MethodName

func (_ DisallowKind) MethodName() string

type IDReason

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

type IPReason

type IPReason struct {
	IP     st `json:"ip"`
	Reason st `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, er)

type PubKeyReason

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

type Request

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

type Response

type Response struct {
	Result any `json:"result,omitempty"`
	Error  st  `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