Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SampleMongo ¶
type SampleMongo struct {
Collection *mongo.Collection
}
SampleMongo is a an implementation for the SampleModel interface to interact with Samples in MongoDB
func (*SampleMongo) Delete ¶
func (s *SampleMongo) Delete(id string) (int64, error)
Delete (SampleMongo) deletes a Sample based on its ID To-do
func (*SampleMongo) Get ¶
func (s *SampleMongo) Get(id string) (*models.Sample, error)
Get (SampleMongo) gets a Sample based on the ID
Click to show internal directories.
Click to hide internal directories.