user

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate

func Activate(db *sql.DB, username string) error

func CreateTable

func CreateTable(db *sql.DB) error

func Delete

func Delete(db *sql.DB, username string) error

func UnpackStruct added in v0.3.0

func UnpackStruct(u interface{}) []interface{}

Types

type User

type User struct {
	Id               int64
	Username         string
	Email            string
	PublicKeyMessage string
	PublicKeySign    string
	Active           bool
	Deleted          bool
	ActivateToken    string
	DeleteToken      string
	CreateDatetime   time.Time
}

func Add

func Add(db *sql.DB, username string, email string, publicKeyMessage string, publickeySign string) (*User, error)

func GetByUsername

func GetByUsername(db *sql.DB, username string) (*User, error)

Jump to

Keyboard shortcuts

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