Documentation ¶
Index ¶
- func FetchUserDataWithNumber(ctx context.Context, number string) (map[string]interface{}, string)
- func GetFirebaseApp(ctx context.Context) (*firebase.App, error)
- func GetFirebaseClient(ctx context.Context) *firestore.Client
- func GetUserdata(ctx context.Context, useruids []interface{}) ([]*auth.UserRecord, error)
- func LookupUserNumber(ctx context.Context, uid string) (string, error)
- func MakeAtlasDepartmentRequest(client *http.Client) (*http.Response, error)
- func MakeAtlasSectionRequest(client *http.Client, term, dept, course string) (*http.Response, error)
- func MoveTrackedSection(ctx context.Context, crn, uid, term string) error
- func ParseDepartmentResponse(response *http.Response) ([]*models.Department, error)
- func ParseSectionResponse(response *http.Response, crnToFind string) ([]models.Section, error)
- func SendEmail(userdata []*auth.UserRecord, section models.Section) error
- func SendText(client *http.Client, number, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchUserDataWithNumber ¶
FetchUserDataWithNumber check firebase to see if the user exists in our database
func GetFirebaseClient ¶
GetFirebaseClient creates and returns a new firebase client, used to interact with the database
func GetUserdata ¶
func GetUserdata(ctx context.Context, useruids []interface{}) ([]*auth.UserRecord, error)
func LookupUserNumber ¶
LookupUserNumber looks up a user's phone number from their uid
func MakeAtlasSectionRequest ¶
func MakeAtlasSectionRequest(client *http.Client, term, dept, course string) (*http.Response, error)
MakeAtlasSectionRequest makes a request to Atlas for section data in the term, department, and course
func MoveTrackedSection ¶
MoveTrackedSection moves old sections out of the prod area
func ParseDepartmentResponse ¶
func ParseDepartmentResponse(response *http.Response) ([]*models.Department, error)
func ParseSectionResponse ¶
ParseSectionResponse turns the http.Response into a slice of sections
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.