Documentation
¶
Index ¶
- Variables
- type DynamoDBBackend
- func (m *DynamoDBBackend) Close()
- func (d *DynamoDBBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
- func (d *DynamoDBBackend) DeleteEvent(ctx context.Context, event *nostr.Event) error
- func (d *DynamoDBBackend) Init() error
- func (d *DynamoDBBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)
- func (d *DynamoDBBackend) ReplaceEvent(ctx context.Context, evt *nostr.Event) error
- func (d *DynamoDBBackend) SaveEvent(ctx context.Context, event *nostr.Event) error
Constants ¶
This section is empty.
Variables ¶
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 (*DynamoDBBackend) DeleteEvent ¶
func (*DynamoDBBackend) Init ¶
func (d *DynamoDBBackend) Init() error
func (*DynamoDBBackend) QueryEvents ¶
func (*DynamoDBBackend) ReplaceEvent ¶
Click to show internal directories.
Click to hide internal directories.