Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnRegion = "en" RuRegion = "ru" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WikiApiParser ¶
type WikiApiParser struct {
// contains filtered or unexported fields
}
func NewWikiApiParser ¶
func NewWikiApiParser(region string, client httpx.Client) *WikiApiParser
func (*WikiApiParser) Parse ¶
func (w *WikiApiParser) Parse(ctx context.Context, url string) (model.ParsedArticle, error)
type WikiHtmlParser ¶
type WikiHtmlParser struct {
// contains filtered or unexported fields
}
func NewWikiHtmlParser ¶
func NewWikiHtmlParser(client httpx.Client) *WikiHtmlParser
func (*WikiHtmlParser) Parse ¶
func (w *WikiHtmlParser) Parse(ctx context.Context, url string) (model.ParsedArticle, error)
Click to show internal directories.
Click to hide internal directories.