user

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID                     int
	CurrentActiveSessionID int
}

type UserService

type UserService struct {
	DB *sql.DB
}

func NewUserService

func NewUserService(db *sql.DB) *UserService

func (*UserService) GetUser

func (us *UserService) GetUser(id int) (User, error)

func (*UserService) InsertNewUser

func (us *UserService) InsertNewUser(activeSessionID int) (User, error)

func (*UserService) UpdateUserCurrentActiveSession

func (us *UserService) UpdateUserCurrentActiveSession(
	userID int,
	activeSessionID int,
) (User, error)

Jump to

Keyboard shortcuts

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