Documentation ¶
Index ¶
- Constants
- type DateRange
- type Filter
- type Op
- type SearchRequest
- func (c *SearchRequest) Closest() string
- func (c *SearchRequest) DateRange() index.DateRange
- func (c *SearchRequest) Fields() []string
- func (c *SearchRequest) Filter() index.Filter
- func (c *SearchRequest) Limit() int
- func (c *SearchRequest) MatchType() index.MatchType
- func (c *SearchRequest) Output() string
- func (c *SearchRequest) Parse(values url.Values) error
- func (c *SearchRequest) SetLimit(limit int)
- func (c *SearchRequest) SetMatchType(matchType index.MatchType)
- func (c *SearchRequest) Sort() index.Sort
- func (c *SearchRequest) Ssurt() string
- func (c *SearchRequest) Url() *whatwgUrl.Url
Constants ¶
View Source
const ( SortClosest = "closest" SortReverse = "reverse" )
View Source
const ( MatchTypeHost = "host" MatchTypeDomain = "domain" MatchTypePrefix = "prefix" MatchTypeExact = "exact" MatchTypeVerbatim = "verbatim" )
View Source
const ( OutputCdxj = "cdxj" OutputJson = "json" )
View Source
const ( ParamMatchType = "matchType" ParamUrl = "url" ParamFrom = "from" ParamTo = "to" ParamLimit = "limit" ParamSort = "sort" ParamClosest = "closest" ParamOutput = "output" ParamFilter = "filter" ParamFields = "fields" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchRequest ¶ added in v0.4.0
type SearchRequest struct { FilterMap map[string]string url.Values // contains filtered or unexported fields }
func ClosestRequest ¶ added in v0.4.0
func ClosestRequest(closest string, url *whatwgUrl.Url) *SearchRequest
func (*SearchRequest) Closest ¶ added in v0.4.0
func (c *SearchRequest) Closest() string
func (*SearchRequest) DateRange ¶ added in v0.4.0
func (c *SearchRequest) DateRange() index.DateRange
func (*SearchRequest) Fields ¶ added in v0.4.0
func (c *SearchRequest) Fields() []string
func (*SearchRequest) Filter ¶ added in v0.4.0
func (c *SearchRequest) Filter() index.Filter
func (*SearchRequest) Limit ¶ added in v0.4.0
func (c *SearchRequest) Limit() int
func (*SearchRequest) MatchType ¶ added in v0.4.0
func (c *SearchRequest) MatchType() index.MatchType
func (*SearchRequest) Output ¶ added in v0.4.0
func (c *SearchRequest) Output() string
func (*SearchRequest) Parse ¶ added in v0.4.0
func (c *SearchRequest) Parse(values url.Values) error
func (*SearchRequest) SetLimit ¶ added in v0.4.0
func (c *SearchRequest) SetLimit(limit int)
func (*SearchRequest) SetMatchType ¶ added in v0.4.3
func (c *SearchRequest) SetMatchType(matchType index.MatchType)
func (*SearchRequest) Sort ¶ added in v0.4.0
func (c *SearchRequest) Sort() index.Sort
func (*SearchRequest) Ssurt ¶ added in v0.4.0
func (c *SearchRequest) Ssurt() string
func (*SearchRequest) Url ¶ added in v0.4.0
func (c *SearchRequest) Url() *whatwgUrl.Url
Click to show internal directories.
Click to hide internal directories.