models

package
v0.0.0-...-c3c68c0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAccountsTable

func InitAccountsTable()

InitAccountsTable initializes the Accounts table.

Types

type Account

type Account struct {
	Name     string
	Email    string
	Password string
	Picture  string
}

Account is the model of an account object.

func CreateAccount

func CreateAccount(acc Account) (Account, error)

CreateAccount creates an Account instance.

func DeleteAccount

func DeleteAccount(email string) (Account, error)

DeleteAccount deletes an Account instance by a given email.

func GetAccount

func GetAccount(email string) (Account, error)

GetAccount retrieves an Account instance by a given email.

func UpdateAccount

func UpdateAccount(email string, acc Account) (Account, error)

UpdateAccount updates an Account instance by a given email.

Jump to

Keyboard shortcuts

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