Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMongoDB ¶
NewMongoDB creates a new instance of the mongodb client
func NewRawRecordRepository ¶
func NewRawRecordRepository(db *mongo.Database, collection string) database.RawRecordRepository
NewRawRecordRepository creates a new instance of the raw record repository
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
MongoDB is the struct for mongodb
func (*MongoDB) RawRecordRepository ¶
func (db *MongoDB) RawRecordRepository() database.RawRecordRepository
RawRecordRepository represents a raw record
type RawRecordRepository ¶
type RawRecordRepository struct {
mongodb.Repository
}
RawRecordRepository creates a new instance of the raw record repository
func (*RawRecordRepository) FetchByRequestId ¶
func (repository *RawRecordRepository) FetchByRequestId(requestID id.ID) (records []entities.RawRecord, err error)
FetchByRequestId returns all raw records with a given request id sorted in ascending order.
Click to show internal directories.
Click to hide internal directories.