user

package
v0.0.0-...-f926c12 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id, omitempty"`
	UserName string             `bson:"username, omitempty"`
	Password string             `bson:"password, omitempty"`
}

func GetUser

func GetUser(username string) (*User, error)

func (*User) Insert

func (u *User) Insert() error

Jump to

Keyboard shortcuts

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