entities

package
v0.0.0-...-c56e262 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserTable

func CreateUserTable() error

Types

type Album

type Album struct {
	Title       string
	Artist      string
	ReleaseDate time.Time
}

func NewAlbum

func NewAlbum(title string, artist string, releaseDate time.Time) *Album

func (*Album) String

func (a *Album) String() string

type User

type User struct {
	Username string
	Realname string
	// contains filtered or unexported fields
}

func FetchUser

func FetchUser(username string) (*User, error)

func NewUser

func NewUser(username, realname, password string) *User

func (*User) ComparePassword

func (u *User) ComparePassword(password string) bool

func (*User) DeleteUser

func (u *User) DeleteUser() error

func (*User) Id

func (u *User) Id() int

func (*User) SaveUser

func (u *User) SaveUser() error

func (*User) SetPassword

func (u *User) SetPassword(password string) error

Jump to

Keyboard shortcuts

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