Documentation ¶
Index ¶
- type CompleteUser
- type DBClientData
- type Database
- func (d *Database) Close() error
- func (d *Database) CreateSymptom(symptom string, trackerID int) error
- func (d *Database) CreateSymptomLog(symptomLog SymptomLogRequestBody) error
- func (d *Database) CreateTracker(tracker string, userID int) error
- func (d *Database) CreateUser(email, sub string) error
- func (d *Database) GetSymptomLogByTrackerIDAndCurrentTime(trackerID int) (SymptomLog, error)
- func (d *Database) GetSymptomLogsByTrackerID(trackerID int) ([]SymptomLog, error)
- func (d *Database) GetSymptomLogsByUserID(userID int) ([]SymptomLog, error)
- func (d *Database) GetSymptomsByTrackerID(trackerID int) ([]Symptom, error)
- func (d *Database) GetTrackerByNameAndUserID(trackerName string, userID int) (Tracker, error)
- func (d *Database) GetTrackerByUserID(userID int) ([]Tracker, error)
- func (d *Database) GetUserBySub(cognitoSub string) (User, error)
- type NewTrackerRequestBody
- type Symptom
- type SymptomLog
- type SymptomLogRequestBody
- type Tracker
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompleteUser ¶
type DBClientData ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
NOTE: Database holds the database connection pool.
func (*Database) CreateSymptom ¶
func (*Database) CreateSymptomLog ¶
func (d *Database) CreateSymptomLog(symptomLog SymptomLogRequestBody) error
func (*Database) CreateUser ¶
func (*Database) GetSymptomLogByTrackerIDAndCurrentTime ¶
func (d *Database) GetSymptomLogByTrackerIDAndCurrentTime(trackerID int) (SymptomLog, error)
func (*Database) GetSymptomLogsByTrackerID ¶
func (d *Database) GetSymptomLogsByTrackerID(trackerID int) ([]SymptomLog, error)
func (*Database) GetSymptomLogsByUserID ¶
func (d *Database) GetSymptomLogsByUserID(userID int) ([]SymptomLog, error)
func (*Database) GetSymptomsByTrackerID ¶
func (*Database) GetTrackerByNameAndUserID ¶
func (*Database) GetTrackerByUserID ¶
type NewTrackerRequestBody ¶
type SymptomLog ¶
type SymptomLogRequestBody ¶
Click to show internal directories.
Click to hide internal directories.