policies

package
v0.0.0-...-40b14aa Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	RejectEmptyHeaderUserAgent(r *http.Request) bool
	RejectEmptyFilters(filter *nostr.Filter) (reject bool, msg string)
	RejectEventWithCharacter(c *cctx.Context, evt *nostr.Event) (bool, string)
	RejectValidateEvent(c *cctx.Context, evt *nostr.Event) (bool, string)
	RejectValidatePow(c *cctx.Context, evt *nostr.Event) (bool, string)
	RejectValidateTimeStamp(c *cctx.Context, evt *nostr.Event) (bool, string)
	RejectEventFromPubkeyWithBlacklist(c *cctx.Context, evt *nostr.Event) (bool, string)
	StoreBlacklistWithContent(c *cctx.Context, evt *nostr.Event) error
}

Service service interface

func NewService

func NewService() Service

Jump to

Keyboard shortcuts

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