model

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoDBModel

func NewMongoDBModel(mongoCli *mongo.Client, mongoDB, collectionName string, tokenManager bizuserinters.TokenManager,
	logger l.Wrapper) authenticator.DBModel

Types

type MongoDBModel4UT

type MongoDBModel4UT interface {
	Cleanup4UT()
}

type User

type User struct {
	ID        uint64 `bson:"_id"`
	UserName  string `bson:"user_name"`
	Password  string `bson:"password"`
	Google2FA string `bson:"google_2_fa"`
	CreateAt  int64  `bson:"create_at"`
	Admin     bool   `bson:"admin"`
}

Jump to

Keyboard shortcuts

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