Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *sql.DB
Functions ¶
Types ¶
type Session ¶
func (*Session) DeleteByUUID ¶
Delete session from database
type Thread ¶
func (*Thread) NumReplies ¶
type User ¶
type User struct { Id int Uuid string Name string Email string Password string CreatedAt time.Time }
func UserByEmail ¶
Get a single user given the email
func UserByUUID ¶
Get a single user given the UUID
func (*User) CreateSession ¶
Create a new session for an existing user
Click to show internal directories.
Click to hide internal directories.