Documentation
¶
Index ¶
- type MongoClient
- func (mc *MongoClient) DropDatabase(ctx context.Context, database string) error
- func (mc *MongoClient) FindByID(ctx context.Context, database, collection string, _id string) (map[string]interface{}, error)
- func (mc *MongoClient) InsertRecord(ctx context.Context, database, collection string, record interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoClient ¶
type MongoClient struct {
// contains filtered or unexported fields
}
func NewMongoClient ¶
func NewMongoClient(URI string) (*MongoClient, error)
func (*MongoClient) DropDatabase ¶
func (mc *MongoClient) DropDatabase( ctx context.Context, database string, ) error
func (*MongoClient) InsertRecord ¶
Click to show internal directories.
Click to hide internal directories.