nip86

package
v0.49.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 4 Imported by: 5

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 GrantAdmin added in v0.49.6

type GrantAdmin struct {
	Pubkey       string
	AllowMethods []string
}

func (GrantAdmin) MethodName added in v0.49.6

func (GrantAdmin) 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 ListAllowedEvents added in v0.49.6

type ListAllowedEvents struct{}

func (ListAllowedEvents) MethodName added in v0.49.6

func (ListAllowedEvents) MethodName() string

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 ListDisallowedKinds added in v0.49.6

type ListDisallowedKinds struct{}

func (ListDisallowedKinds) MethodName added in v0.49.6

func (ListDisallowedKinds) 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 RevokeAdmin added in v0.49.6

type RevokeAdmin struct {
	Pubkey          string
	DisallowMethods []string
}

func (RevokeAdmin) MethodName added in v0.49.6

func (RevokeAdmin) MethodName() string

type Stats added in v0.49.6

type Stats struct{}

func (Stats) MethodName added in v0.49.6

func (Stats) MethodName() 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