repository

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultQueryLimit uint32
	MaxQueryLimit     uint32
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config, db *database.Database, grpc grpcclient.IClient) *Handler

func (*Handler) DeleteByFilter added in v0.0.8

func (h *Handler) DeleteByFilter(f *filter.Filter) error

func (*Handler) DeleteByID

func (h *Handler) DeleteByID(id string, kind types.Kind) error

func (*Handler) HandleEvent

func (h *Handler) HandleEvent(e *event.Event) error

func (*Handler) HandleReq

func (h *Handler) HandleReq(f *filter.Filter, pubkey string) ([]event.Event, error)

func (*Handler) NIP09Deletion added in v0.0.8

func (h *Handler) NIP09Deletion(e *event.Event) error

Jump to

Keyboard shortcuts

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