nip86

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: CC0-1.0 Imports: 7 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 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 B

type B = []byte

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 Ctx

type Ctx = context.T

type DisallowKind

type DisallowKind struct {
	Kind int
}

func (DisallowKind) MethodName

func (_ DisallowKind) MethodName() string

type E

type E = error

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 N

type N = int

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 S

type S = string

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