repository

package
v0.0.0-...-bef6861 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorization

type Authorization interface {
	CreateUser(user domain.User) (int64, error)
	GetUser(email, password string) (domain.User, error)
	GetUserName(id int64) (string, error)
}

type Repository

type Repository struct {
	Authorization
}

func NewRepository

func NewRepository(db *mongodb.Client) *Repository

type Verification

type Verification interface {
	SetDiscord(id int64, discord string) error
	SetVerificationCode(id int64, code int) error
	GetVerificationCode(id int64) (int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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