database

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping added in v1.0.7

func Ping(client *mongo.Client) bool

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) Connect

func (self *Client) Connect() bool

func (*Client) Disconnect

func (self *Client) Disconnect() bool

func (*Client) GetUserCollection

func (self *Client) GetUserCollection() *UserCollection

type UserCollection

type UserCollection struct {
	// contains filtered or unexported fields
}

func (UserCollection) DeleteUser

func (self UserCollection) DeleteUser(uuid string) bool

func (UserCollection) ExistsId

func (self UserCollection) ExistsId(userId string) bool

func (UserCollection) GetUserUuid

func (self UserCollection) GetUserUuid(userId string) (string, error)

func (UserCollection) Login

func (self UserCollection) Login(userId, password string) bool

func (UserCollection) NewUser

func (self UserCollection) NewUser(userId, password, nickname, email string) string

Jump to

Keyboard shortcuts

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