Documentation
¶
Index ¶
- func NoComplexFilters(ctx context.Context, filter nostr.Filter) (reject bool, msg string)
- func NoPrefixFilters(ctx context.Context, filter nostr.Filter) (reject bool, msg string)
- func PreventTimestampsInTheFuture(thresholdSeconds nostr.Timestamp) func(context.Context, *nostr.Event) (bool, string)
- func PreventTimestampsInThePast(thresholdSeconds nostr.Timestamp) func(context.Context, *nostr.Event) (bool, string)
- func PreventTooManyIndexableTags(max int) func(context.Context, *nostr.Event) (bool, string)
- func RestrictToSpecifiedKinds(kinds ...uint16) func(context.Context, *nostr.Event) (bool, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NoComplexFilters ¶
func NoPrefixFilters ¶
func PreventTimestampsInTheFuture ¶ added in v0.0.7
func PreventTimestampsInThePast ¶ added in v0.0.7
func PreventTooManyIndexableTags ¶
PreventTooManyIndexableTags returns a function that can be used as a RejectFilter that will reject events with more indexable (single-character) tags than the specified number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.