persistence

package
v0.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDb

func CloseDb() error

func ConnectToDb

func ConnectToDb() error

func DeleteUser

func DeleteUser(userId int) error

Types

type User

type User struct {
	ID       int
	Username string
	Email    string
}

func CreateUser

func CreateUser(user User) (User, error)

func GetAllUsers

func GetAllUsers() ([]User, error)

Jump to

Keyboard shortcuts

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