auth_db

package
v0.0.0-...-0064678 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthRepository

func NewAuthRepository(db *mongo.Database) (*authRepositoryImpl, error)

func NewAuthRepositoryTest

func NewAuthRepositoryTest(collection *mongo.Collection) (*authRepositoryImpl, error)

NewUserRepositoryTest for Tests (bad)

Types

type AuthRepository

type AuthRepository interface {
	CreateUser(ctx context.Context, user *auth_core.User) (string, error)
	GetUserByEmail(ctx context.Context, email string) (*auth_core.User, error)
	CheckUserEmailExistence(ctx context.Context, email string) (bool, error)
}

type Repository

type Repository struct {
	AuthRepo AuthRepository
}

func NewRepository

func NewRepository(dbConn *mongo.Database) (*Repository, error)

Jump to

Keyboard shortcuts

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