repo

package
v0.0.0-...-d15974d Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database, _ = database.Connect()

Functions

func AddToken

func AddToken(email string, token []string) (models.User, error)

func CreateUser

func CreateUser(email string, tokens []string) (models.User, bool)

func FindByEmail

func FindByEmail(email string) (models.User, error)

func GenerateId

func GenerateId(text string) string

Types

type UserRepo

type UserRepo struct{}

Jump to

Keyboard shortcuts

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