Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrPatternInvalid = "Pattern is invalid Go Regexp pattern" ErrPatternInvalidf = fmt.Sprint(ErrPatternInvalid, ", %s") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is the parent RSS feed configuration
It is used to set global and item specific parsing parameters
type Global ¶
type Global struct {
Patterns []string
}
Global is the universal set of configs that are applied to all feeds
type Match ¶
type Match struct { Provider *Provider `json:"provider"` Item *gofeed.Item `json:"item"` RawMatch string `json:"raw_match"` }
func (Match) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Match) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Match) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Match) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Matches ¶
type Matches []Match
func (Matches) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Matches) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Matches) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Matches) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Provider ¶
type Provider struct { Name string `json:"name"` URL string `json:"url"` Depth int `json:"depth"` Pattern string `json:"pattern"` }
Provider is an individual configuration consumed by the RSS parser
func (Provider) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Provider) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Provider) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Provider) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Result ¶
type Result struct { ID string `json:"id"` Provider Provider `json:"provider"` Feed *gofeed.Feed `json:"feed"` }
func (Result) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Result) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Result) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Result) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Results ¶
type Results []Result
func (Results) FindMatches ¶
func (Results) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Results) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Results) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Results) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface