package
0.0.0-20240121130038-222ed67bb6ee
Repository: https://github.com/psychoplasma/crypto-balance-bot.git
Documentation: pkg.go.dev

# Functions

FromDomain converts domain.Subscription model to a MongoDB document representation.
NewSubscriptionRepository creates a new instance of SubscriptionRepository.
ToDomain converts MongoDB document representation of Subscription to domain model.
ToDomainSlice converts slice of MongoDB documents to slice of domain models.

# Constants

CollectionName is the name of Subscription collection.
DocumentLimitsPerQuery limits query result to a certain number of documents.

# Structs

Filter represents a document in MongoDB corresponding to domain.Filter.
Subscription represents a document in MongoDB corresponding to domain.Subscription.
SubscriptionRepository is MongoDB implementation of SubscriptionRepository.