Documentation
¶
Index ¶
- func FetchUserDataWithNumber(ctx context.Context, fbClient *firestore.Client, number string) (map[string]interface{}, string)
- func GetFirebaseClient(ctx context.Context) *firestore.Client
- func LookupUserNumber(ctx context.Context, fbClient *firestore.Client, uid string) (string, error)
- func MakeAtlasSectionRequest(client *http.Client, term, dept, course string) (*http.Response, error)
- func MoveTrackedSection(ctx context.Context, fbClient *firestore.Client, crn, uid, term string) error
- func ParseSectionResponse(response *http.Response, crnToFind string) ([]models.Section, error)
- func SendText(client *http.Client, number, message string) (response *http.Response, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchUserDataWithNumber ¶
func FetchUserDataWithNumber(ctx context.Context, fbClient *firestore.Client, number string) (map[string]interface{}, string)
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 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 ¶
func MoveTrackedSection(ctx context.Context, fbClient *firestore.Client, crn, uid, term string) error
MoveTrackedSection moves old sections out of the prod area
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.