dbhandler

package
v0.0.0-...-c618003 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FIRST_U_NAME = "Matheus Souza"
	FIRST_U_TAG  = "5B320FE6"
	FIRST_E_NAME = "Arduino Uno"
)

Variables

This section is empty.

Functions

func CloseDatebase

func CloseDatebase()

func CreateEquipment

func CreateEquipment(j []byte) (int64, error)

func CreateUser

func CreateUser(j []byte) int64

func DeleteEquipmentById

func DeleteEquipmentById(id string) error

func DeleteUserById

func DeleteUserById(id string) error

func DeleteUserByTag

func DeleteUserByTag(tag string) error

func FindEquipmentById

func FindEquipmentById(id string) ([]byte, error)

func FindEquipmentByString

func FindEquipmentByString(s string) ([]byte, error)

func FindEquipmentsByInUse

func FindEquipmentsByInUse(inuse bool) ([]byte, error)

func FindUserById

func FindUserById(id string) ([]byte, error)

func FindUserByTag

func FindUserByTag(tag string) ([]byte, error)

func LoadDatabase

func LoadDatabase(path string)

func LogByEquipId

func LogByEquipId(id string) ([]byte, error)

func LogByUserId

func LogByUserId(id string) ([]byte, error)

func RentEquipment

func RentEquipment(id string, j []byte) error

func ReturnEquipment

func ReturnEquipment(id string, j []byte) error

func UpdateEquipment

func UpdateEquipment(id string, j []byte) error

func UpdateUser

func UpdateUser(id string, j []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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