dynamodb

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTooManyIDs       = errors.New("too many ids")
	ErrTooManyAuthors   = errors.New("too many authors")
	ErrTooManyKinds     = errors.New("too many kinds")
	ErrEmptyTagSet      = errors.New("empty tag set")
	ErrTooManyTagValues = errors.New("too many tag values")
)

Functions

This section is empty.

Types

type DynamoDBBackend

type DynamoDBBackend struct {
	sync.Mutex
	*dynamodb.Client
	DatabaseURL       string
	QueryLimit        int
	QueryIDsLimit     int
	QueryAuthorsLimit int
	QueryKindsLimit   int
	QueryTagsLimit    int
}

func (*DynamoDBBackend) Close

func (m *DynamoDBBackend) Close()

func (*DynamoDBBackend) CountEvents

func (d *DynamoDBBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)

func (*DynamoDBBackend) DeleteEvent

func (d *DynamoDBBackend) DeleteEvent(ctx context.Context, event *nostr.Event) error

func (*DynamoDBBackend) Init

func (d *DynamoDBBackend) Init() error

func (*DynamoDBBackend) QueryEvents

func (d *DynamoDBBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)

func (*DynamoDBBackend) ReplaceEvent

func (d *DynamoDBBackend) ReplaceEvent(ctx context.Context, evt *nostr.Event) error

func (*DynamoDBBackend) SaveEvent

func (d *DynamoDBBackend) SaveEvent(ctx context.Context, event *nostr.Event) error

Jump to

Keyboard shortcuts

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