simple
package v1.17.3
Go to latest Published: Feb 28, 2025 License:MIT
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:5 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- Constants
- func CollectionExists(ctx context.Context, db mongoifc.Database, name string) (bool, error)
- func Create(ctx context.Context, db mongoifc.Database, users ...User) ([]string, error)
- func CreateCollection(ctx context.Context, db mongoifc.Database, name string) error
- func Delete(ctx context.Context, db mongoifc.Database, ids ...string) error
- func DropCollection(ctx context.Context, db mongoifc.Database, name string) error
- type User
Constants¶
View Source
const (UsersCollection = "users")Variables¶
This section is empty.
Functions¶
funcCollectionExists¶added inv1.11.2
funcCreateCollection¶added inv1.11.2
Types¶
typeUser¶
type User struct {IDstring `json:"id,omitempty" bson:"_id,omitempty"`Namestring `json:"name,omitempty" bson:"name,omitempty"`Emailstring `json:"email,omitempty" bson:"email,omitempty"`Activebool `json:"active,omitempty" bson:"active,omitempty"`IsAdminbool `json:"is_admin,omitempty" bson:"is_admin,omitempty"`} Click to show internal directories.
Click to hide internal directories.