Documentation ¶
Index ¶
Constants ¶
View Source
const (
CurrencySnapshotCollections = "currencysnapshots"
)
Variables ¶
View Source
var (
ErrNoDocuments = errors.New("Document does not exist")
)
Functions ¶
This section is empty.
Types ¶
type CurrencySnapshotDataService ¶
type CurrencySnapshotDataService interface { Create(ctx context.Context, currencySnapshot models.CurrencySnapshot) (models.CurrencySnapshot, error) GetByDate(ctx context.Context, date string) ([]models.CurrencySnapshot, error) GetFirstExistCurrency(ctx context.Context, lables ...string) (models.CurrencySnapshot, error) DeleteById(ctx context.Context, id string) (int64, error) }
func NewCurrencySnapshotDataService ¶
func NewCurrencySnapshotDataService(db database.MongoDatabase) CurrencySnapshotDataService
Click to show internal directories.
Click to hide internal directories.