repository

package
v0.0.0-...-8bdb74e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserCredential

type UserCredential interface {
	Register(userCred model.UserCredentials) error
	Login(userCred model.UserCredentials) (string, error)
	FindUserEMail(email string) (userCred model.UserCredentials, err error)
}

func NewUserCredentials

func NewUserCredentials(db *sql.DB) UserCredential

type UserRepo

type UserRepo interface {
	CreateUser(user model.User) error
}

func NewUserRepo

func NewUserRepo(db *sql.DB) UserRepo

Jump to

Keyboard shortcuts

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