Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnsupportedOperation = errors.New("schools: unsupported operation")
ErrUnsupportedOperation is returned when an operation is performed on a school that isn't supported.
var MainRegistry = &Registry{ []data.School{}, }
MainRegistry is the main registry of schools
Functions ¶
This section is empty.
Types ¶
type ImportStatus ¶
type ImportStatus int
An ImportStatus describes the status of a user's imported data
const ( ImportStatusNone ImportStatus = 0 ImportStatusOK ImportStatus = 1 ImportStatusUpdate ImportStatus = 2 )
The types of ImportStatus.
type Provider ¶
A Provider is a generic type that implements all methods of a calendar.Provider except for GetView()
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a struct that tracks available schools
func (*Registry) GetAllSchools ¶
GetAllSchools returns a list of all schools in the registry. It should not be directly modified.
func (*Registry) GetSchoolByEmailDomain ¶
GetSchoolByEmailDomain returns the school associated with the given email domain, or nil if it doesn't exist.
func (*Registry) GetSchoolByID ¶
GetSchoolByID returns the school associated with the given ID, or nil if it doesn't exist.