database

package
v0.0.0-...-e0bd226 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExecutive

func AddExecutive(exec models.Executive) error

Add an executive to database

func AddFellow

func AddFellow(fellow models.Fellow) error

Add a fellow to database

func AddGreeting

func AddGreeting(msg models.Greeting) error

Add a greeting to database

func AddProject

func AddProject(project models.Project) error

Add a project to database

func CloseDatabase

func CloseDatabase()

Close the databas

func GetAllDepartmentExecutives

func GetAllDepartmentExecutives(department string) ([]models.Executive, error)

Get all executives in a specific department from database

func GetAllExecutives

func GetAllExecutives() ([]models.Executive, error)

Get all executives from database

func GetAllFellows

func GetAllFellows() ([]models.Fellow, error)

Get all fellows from database

func GetAllGreetings

func GetAllGreetings() ([]models.Greeting, error)

Get all greetings from database

func GetAllProjects

func GetAllProjects() ([]models.Project, error)

Get all projects from database

func GetDatabase

func GetDatabase() *firestore.Client

Return the instance of database

func InitDatabase

func InitDatabase()

Initialize the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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