Documentation
¶
Index ¶
- Variables
- type MongoDBBackend
- func (m *MongoDBBackend) Close()
- func (m *MongoDBBackend) CountEvents(ctx context.Context, filter nostr.Filter) (int64, error)
- func (m *MongoDBBackend) DeleteEvent(ctx context.Context, event *nostr.Event) error
- func (m *MongoDBBackend) Init() error
- func (m *MongoDBBackend) QueryEvents(ctx context.Context, filter nostr.Filter) (chan *nostr.Event, error)
- func (b *MongoDBBackend) ReplaceEvent(ctx context.Context, evt *nostr.Event) error
- func (m *MongoDBBackend) SaveEvent(ctx context.Context, event *nostr.Event) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MongoDBBackend ¶
type MongoDBBackend struct {
sync.Mutex
*mongo.Client
DatabaseURL string
QueryLimit int
QueryIDsLimit int
QueryAuthorsLimit int
QueryKindsLimit int
QueryTagsLimit int
// contains filtered or unexported fields
}
func (*MongoDBBackend) Close ¶
func (m *MongoDBBackend) Close()
func (*MongoDBBackend) CountEvents ¶
func (*MongoDBBackend) DeleteEvent ¶
func (*MongoDBBackend) Init ¶
func (m *MongoDBBackend) Init() error
func (*MongoDBBackend) QueryEvents ¶
func (*MongoDBBackend) ReplaceEvent ¶
Click to show internal directories.
Click to hide internal directories.