Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(ctx context.Context, u UserToCreate, uri, dbname string) error
CreateUser Create a user
https://docs.mongodb.com/manual/reference/command/createUser/#mongodb-dbcommand-dbcmd.createUser
func DeleteUser ¶
DeleteUser Delete a user
https://docs.mongodb.com/manual/reference/command/dropUser/#mongodb-dbcommand-dbcmd.dropUser
Types ¶
type SimpleResult ¶
type SimpleResult struct {
Ok int `bson:"ok"`
}
type UserInfoResult ¶
Click to show internal directories.
Click to hide internal directories.