Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchStory = errors.New("Story with the given ID not found") ErrInvalidDataFormat = errors.New("Invalid data format") )
View Source
var ( HotSource = "hot" NewSource = "new" TopSource = "top" ControversialSource = "controversial" )
View Source
var ( SortNew = &Parameter{ sources: []string{NewSource}, values: map[string]string{"sort": "new"}, } SortRising = &Parameter{ sources: []string{NewSource}, values: map[string]string{"sort": "rising"}, } TimeToday = &Parameter{ sources: []string{TopSource, ControversialSource}, values: map[string]string{"t": "today"}, } TimeHour = &Parameter{ sources: []string{TopSource, ControversialSource}, values: map[string]string{"t": "hour"}, } TimeWeek = &Parameter{ sources: []string{TopSource, ControversialSource}, values: map[string]string{"t": "week"}, } TimeMonth = &Parameter{ sources: []string{TopSource, ControversialSource}, values: map[string]string{"t": "month"}, } TimeYear = &Parameter{ sources: []string{TopSource, ControversialSource}, values: map[string]string{"t": "year"}, } TimeAll = &Parameter{ sources: []string{TopSource, ControversialSource}, values: map[string]string{"t": "all"}, } )
Functions ¶
func SourceIsValid ¶
Types ¶
type App ¶
type App struct { Client *httpclient.Client // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.