Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
Col *mongo.Collection
}
func NewCollection ¶
func NewCollection(c *mongo.Collection) *Collection
func (*Collection) DeleteOneById ¶
func (c *Collection) DeleteOneById(id string) error
func (*Collection) FindAll ¶
func (c *Collection) FindAll(results interface{}) error
func (*Collection) FindOneById ¶
func (c *Collection) FindOneById(id string, result interface{}) error
Click to show internal directories.
Click to hide internal directories.