repository

package
v0.0.0-...-16c9f73 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationRepository

type AuthenticationRepository interface {
	FindByEmailAndUsername(email string, username string) models.User
	Register(user *models.User) *models.User
}

func NewAuthenticationRepository

func NewAuthenticationRepository(db *gorm.DB) AuthenticationRepository

type UserRepository

type UserRepository interface {
	Save(user models.User) models.User
	Update(user models.User) models.User
	Delete(id string)
	FindById(id string) models.User
	FindAll() []models.User
}

func NewUserRepository

func NewUserRepository(db *gorm.DB) UserRepository

Jump to

Keyboard shortcuts

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