Documentation
¶
Index ¶
- func Connect() *sql.DB
- func CreateUser(db *sql.DB, uuid uuid.UUID, username string, email string, createdAt time.Time, ...) error
- func CreateUserSession(db *sql.DB, uuid uuid.UUID, userUuid uuid.UUID, createdAt time.Time, ...) error
- func CreateVideo(db *sql.DB, url, title string, createdAt time.Time) error
- func DeleteExpiredSessions(db *sql.DB) error
- func DeleteUserSessionByToken(db *sql.DB, token uuid.UUID) error
- func DeleteVideo(db *sql.DB, url string) error
- func IncrementUploads(db *sql.DB, userID uuid.UUID) (bool, error)
- func Migrate()
- type User
- type UserSession
- type Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUserSession ¶
func DeleteExpiredSessions ¶
Types ¶
type User ¶
type UserSession ¶
type UserSession struct { UUID uuid.UUID UserUUID uuid.UUID CreatedAt time.Time ExpiresAt time.Time }
func GetUserSession ¶
func GetUserSessionByToken ¶
Click to show internal directories.
Click to hide internal directories.