Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *mongo.Client
Functions ¶
This section is empty.
Types ¶
type MongoConnect ¶
type MongoConnect struct {
// contains filtered or unexported fields
}
func NewMongo ¶
func NewMongo(client *mongo.Client) *MongoConnect
func (*MongoConnect) Close ¶
func (c *MongoConnect) Close()
func (*MongoConnect) Collection ¶
func (c *MongoConnect) Collection(name string) *mongo.Collection
func (*MongoConnect) Connect ¶
func (c *MongoConnect) Connect()
Click to show internal directories.
Click to hide internal directories.