Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoBaseRepository ¶
type MongoBaseRepository struct { MongoInstance Models interface{} }
func NewMongoBaseRepository ¶
func NewMongoBaseRepository(collectionName string) *MongoBaseRepository
func (*MongoBaseRepository) CreateOne ¶
func (mbr *MongoBaseRepository) CreateOne(m interface{}) (*string, error)
func (*MongoBaseRepository) Find ¶
func (mbr *MongoBaseRepository) Find(f interface{}) (interface{}, error)
type MongoInstance ¶
Click to show internal directories.
Click to hide internal directories.