Documentation ¶
Index ¶
- func CoursesChan(all bool, opts ...canvas.Option) <-chan *canvas.Course
- func FindAssignment(identifier string, all bool, opts ...canvas.Option) (*canvas.Assignment, error)
- func FindCourse(identifier interface{}, opts ...canvas.Option) (*canvas.Course, error)
- func GetAssignment(id int, all bool, opts ...canvas.Option) (*canvas.Assignment, error)
- func GetCourses(all bool, opts ...canvas.Option) ([]*canvas.Course, error)
- func HandleAuthErr(err error) error
- func Homedir() string
- func Mkdir(dir string) error
- func NewTable(r io.Writer) *table.Table
- func SetTableHeader(t *table.Table, header []string, color bool)
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoursesChan ¶ added in v0.0.4
func CoursesChan(all bool, opts ...canvas.Option) <-chan *canvas.Course
CoursesChan returns a channel of courses
func FindAssignment ¶ added in v0.0.4
FindAssignment will find an assignment the matches a generic identifier.
func FindCourse ¶ added in v0.0.4
func FindCourse(identifier interface{}, opts ...canvas.Option) (*canvas.Course, error)
FindCourse will find a course given a generice identifier
func GetAssignment ¶ added in v0.0.4
GetAssignment will search courses for an assignment with the assignment's ID
func GetCourses ¶
GetCourses gets all the courses
func HandleAuthErr ¶
HandleAuthErr will handle a canvas auth error and give a more relevant error message.
Types ¶
Click to show internal directories.
Click to hide internal directories.