Versions in this module Expand all Collapse all v0 v0.0.1 Sep 17, 2022 Changes in this version + var DB *bun.DB + func CheckAuthID(authId string) (User, AuthID, bool) + func Init(logger *log.Logger) + func InitHeadless() error + type AuthID struct + ID string + IssuedAt time.Time + UID string + func GetAuthID(token string) (AuthID, error) + type Course struct + CreatedAt time.Time + CreditHours float32 + Description string + GradeLevel int16 + ID string + School string + SchoolYear string + ShortName string + Subject string + Title string + UpdatedAt time.Time + func GetCourse(id string) (Course, error) + type School struct + Address address + CreatedAt time.Time + ID string + Principal string + ScheduleRotationDays int + SchoolNumber string + SchoolYear int16 + ShortName string + Title string + UpdatedAt time.Time + WebAddress string + func GetSchool(id string) (School, error) + type User struct + CreatedAt time.Time + CustomData map[string]interface{} + Email string + FamilyName string + GivenName string + ID string + Issuer string + LastLogin time.Time + MiddleName string + NameSuffix string + School string + Subject string + UpdatedAt time.Time + UserPreferences map[string]interface{} + func GetUser(id string) (User, error)