Documentation ¶
Index ¶
- type AllowEvent
- type AllowKind
- type AllowPubKey
- type BanEvent
- type BanPubKey
- type BlockIP
- type ChangeRelayDescription
- type ChangeRelayIcon
- type ChangeRelayName
- type DisallowKind
- type IDReason
- type IPReason
- type ListAllowedKinds
- type ListAllowedPubKeys
- type ListBannedEvents
- type ListBannedPubKeys
- type ListBlockedIPs
- type ListEventsNeedingModeration
- type MethodParams
- type PubKeyReason
- type Request
- type Response
- type SupportedMethods
- type UnblockIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowEvent ¶
func (AllowEvent) MethodName ¶
func (_ AllowEvent) MethodName() string
type AllowPubKey ¶
func (AllowPubKey) MethodName ¶
func (_ AllowPubKey) MethodName() string
type BanEvent ¶
func (BanEvent) MethodName ¶
type BanPubKey ¶
func (BanPubKey) MethodName ¶
type BlockIP ¶
func (BlockIP) MethodName ¶
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 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 S `json:"pubkey"` Reason S `json:"reason"` }
type Response ¶
type Response struct { Result any `json:"result,omitempty"` Error S `json:"error,omitempty"` }
type SupportedMethods ¶
type SupportedMethods struct{}
func (SupportedMethods) MethodName ¶
func (_ SupportedMethods) MethodName() string
Click to show internal directories.
Click to hide internal directories.