Documentation ¶
Index ¶
Constants ¶
View Source
const ( SortClosest = "closest" SortReverse = "reverse" )
View Source
const ( MatchTypeExact = "exact" MatchTypePrefix = "prefix" MatchTypeHost = "host" MatchTypeDomain = "domain" )
View Source
const ( OutputCdxj = "cdxj" OutputJson = "json" )
Variables ¶
This section is empty.
Functions ¶
func From ¶
From parses string f to unix time according to https://pywb.readthedocs.io/en/latest/manual/cdxserver_api.html#from-to:
Types ¶
type CoreAPI ¶
type CoreAPI struct { Collection string Urls []*url.Url FromTo *DateRange MatchType string Limit int Sort string Closest string Output string Filter []string Fields []string }
CoreAPI implements a subset of https://pywb.readthedocs.io/en/latest/manual/cdxserver_api.html.
type DateRange ¶
type DateRange struct {
// contains filtered or unexported fields
}
func (*DateRange) ContainsStr ¶
ContainsStr returns true if the timestamp ts contained by the bounds defined by the DateRange d. input 'ts' is 'trusted' and does not have the same parsing complexity as a From or To string
Click to show internal directories.
Click to hide internal directories.