mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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 SnippetModel

type SnippetModel struct{}

func (*SnippetModel) Get

func (m *SnippetModel) Get(id int) (*models.Snippet, error)

func (*SnippetModel) Insert

func (m *SnippetModel) Insert(title, content string, expires int) (int, error)

func (*SnippetModel) Latest

func (m *SnippetModel) Latest() ([]*models.Snippet, error)

type UserModel

type UserModel struct{}

func (*UserModel) Authenticate

func (m *UserModel) Authenticate(email, password string) (int, error)

func (*UserModel) Exists

func (m *UserModel) Exists(id int) (bool, error)

func (*UserModel) Get

func (m *UserModel) Get(id int) (*models.User, error)

func (*UserModel) Insert

func (m *UserModel) Insert(name, email, password string) error

func (*UserModel) PasswordUpdate

func (m *UserModel) PasswordUpdate(id int, currentPassword, newPassword string) error

Jump to

Keyboard shortcuts

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