Documentation ¶
Index ¶
- Constants
- func HandleTaskForHtmlRetrieval(incomingURLs <-chan string, outputHTML chan<- string, outputError chan<- error)
- func IsValidSiteAvailabilityCode(letterAnyCase string) bool
- func RetrieveHtmlFromURL(url string) (string, error)
- type Site
- type SiteAvailabilityCode
- type SiteDay
- type SiteParser
- type UrlGenerator
Constants ¶
View Source
const ( SiteAvailable SiteAvailabilityCode = "A" SiteWalkUp = "X" SiteReserved = "R" )
Variables ¶
This section is empty.
Functions ¶
func RetrieveHtmlFromURL ¶
Types ¶
type SiteAvailabilityCode ¶
type SiteAvailabilityCode string
func GetSiteAvailabilityCodeForLetter ¶
func GetSiteAvailabilityCodeForLetter(letterAnyCase string) SiteAvailabilityCode
type SiteDay ¶
type SiteDay struct { SiteAvailability SiteAvailabilityCode Day time.Time }
type SiteParser ¶
func NewSiteParser ¶
func NewSiteParser(expectedStartDay time.Time) *SiteParser
func (*SiteParser) ParseHtmlFromUrl ¶
func (parser *SiteParser) ParseHtmlFromUrl(url string) ([]Site, error)
func (*SiteParser) ParseHtmlString ¶
func (parser *SiteParser) ParseHtmlString(html string) ([]Site, error)
type UrlGenerator ¶
type UrlGenerator interface {
GenerateUrl() string
}
Click to show internal directories.
Click to hide internal directories.