moocfetcher

package
v0.0.0-...-6d04afb Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// S3BucketMOOCFetcher is the name of the S3 Bucket where course
	// metadata is stored.
	S3BucketMOOCFetcher = "moocfetcher"

	// S3BucketMOOCFetcherCourseArchive is the name of the S3 bucket containing
	// archived courses.
	S3BucketMOOCFetcherCourseArchive = "moocfetcher-course-archive"

	// OnDemandLaunchedCoursesKey is the S3 Key for the course metadata
	// of launched courses.
	OnDemandLaunchedCoursesKey = "coursera/ondemand/launched.json"

	// S3CourseURLFormatString can be used to format course archive URLs,
	// given a slug.
	S3CourseURLFormatString = "coursera/%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Course

type Course struct {
	ID         string   `json:"id"`                   // Course ID
	Name       string   `json:"name"`                 // Course Name
	CourseType string   `json:"courseType"`           // Course Type (should be ondemand.v2)
	Slug       string   `json:"slug"`                 // Course URL slug
	Languages  []string `json:"primaryLanguageCodes"` // Array containing primary language codes
	Size       uint64   `json:"size,omitempty"`       // Size of the course in bytes
}

A Course contains metadata about a single course.

type CourseData

type CourseData struct {
	Courses []Course `json:"courses"`
}

CourseData contains serialized course data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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