models

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

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check interface {
	CheckUserExists(queries *db.Queries) error
}

type Cipher

type Cipher interface {
	Encrypt(u *UserModel) error
	Decrypt(u *UserModel) error
	GenerateKey() error
	HashPassword() error
	HashValidation(password string) error
}

type Task

type Task interface {
	UpdateTask(queries *db.Queries) error
}

type TaskModel

type TaskModel struct {
	*db.Task
}

func (*TaskModel) Decrypt

func (t *TaskModel) Decrypt(u *UserModel) (string, error)

func (*TaskModel) Encrypt

func (t *TaskModel) Encrypt(u *UserModel) error

func (*TaskModel) UpdateTask

func (t *TaskModel) UpdateTask(queries *db.Queries) error

func (*TaskModel) Validate

func (t *TaskModel) Validate() error

type UserModel

type UserModel struct {
	*db.User
}

func (*UserModel) CheckUserExists

func (u *UserModel) CheckUserExists(queries *db.Queries) error

func (*UserModel) GenerateKey

func (u *UserModel) GenerateKey() error

func (*UserModel) HashPassword

func (u *UserModel) HashPassword() error

func (*UserModel) HashValidation

func (u *UserModel) HashValidation(password string) error

func (*UserModel) Validate

func (u *UserModel) Validate() error

type Validate

type Validate interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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