handlers

package
v0.0.0-...-eb4f45b Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLessonsHandler

func NewLessonsHandler(db db.Wrapper) http.Handler

NewLessonsHandler handles HTTP requests for lessons browsing.

func NewSearchHandler

func NewSearchHandler(searcher search.Searcher) http.Handler

NewSearchHandler handles HTTP requests for search queries.

func NewStatsHandler

func NewStatsHandler(statsReader io.Reader) http.Handler

NewStatsHandler handles HTTP requests for stats.

Types

type ExternalCourse

type ExternalCourse struct {
	data.Course
	Converted         bool   `json:"converted"`
	FormattedDate     string `json:"date"`
	FormattedDuration string `json:"duration"`
}

ExternalCourse is what gets sent to clients, it contains formatted durations, dates etc.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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