db

package
v0.0.0-...-b447f90 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Db *sql.DB
}

func NewStore

func NewStore(templdb string) (Store, error)

type User

type User struct {
	ID       int    `json:"id"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Username string `json:"username"`
}

type UserServices

type UserServices struct {
	User      User
	UserStore *sql.DB
}

func (*UserServices) CurrentUser

func (us *UserServices) CurrentUser(id int) (User, error)

Jump to

Keyboard shortcuts

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