requests

package
v0.0.0-...-9751f1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assignment

type Assignment struct {
	Id       uint64 `json:"id"`
	CourseId uint64 `json:"course_id"`
	Name     string `json:"name"`
	DueDate  string `json:"due_at"`
	URL      string `json:"html_url"`
}

type Assignments

type Assignments struct {
	Assignments []Assignment
	View        views.TableModel
	Error       error
}

func GetAssignments

func GetAssignments(config Config) (Assignments, error)

type Config

type Config struct {
	Token  string `env:"SOCKS_TOKEN"`
	Domain string `env:"SOCKS_DOMAIN"`
}

type Course

type Course struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
}

type Courses

type Courses struct {
	Courses []Course
	View    views.TableModel
	Error   error
}

func GetCourses

func GetCourses(config Config) (Courses, error)

type ResponseParser

type ResponseParser struct {
	Response http.Response
}

func (ResponseParser) ParseRequest

func (rp ResponseParser) ParseRequest(http.Response) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL