mongo

package
v0.0.0-...-c21d715 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListUsers

func ListUsers(ctx context.Context, uri, dbname string) ([]*model.User, error)

ListUsers List all users for this db

https://docs.mongodb.com/manual/reference/method/db.getUsers/

Types

type SimpleResult

type SimpleResult struct {
	Ok int `bson:"ok"`
}

type UserInfoResult

type UserInfoResult struct {
	Users []*model.User `bson:"users"`
	Ok    int           `bson:"ok"`
}

type UserToCreate

type UserToCreate struct {
	Name  string // not empty
	Pwd   string // not empty
	Roles []*model.Role
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL