Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorContentNotFound = "content not found" ErrorServerResponseNot200 = "server response not 200" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentRuleField ¶
type ContentRuleField struct {
Field string `xml:",chardata"`
Prefix string `xml:"prefix,attr"`
Postfix string `xml:"postfix,attr"`
BottomPadding int `xml:"bottom_padding,attr"`
TopPadding int `xml:"top_padding,attr"`
Bold bool `xml:"bold,attr"`
Italic bool `xml:"italic,attr"`
Features string `xml:"features,attr"`
FeaturesSlice
}
type FeaturesSlice ¶
type Parser ¶
func (*Parser) XMLToStruct ¶
type Rule ¶
type Rule struct {
Name string `xml:"name,attr"`
Block string `xml:"block"`
Title string `xml:"title"`
Link struct {
Href string `xml:",chardata"`
Prefix string `xml:"prefix,attr"`
} `xml:"link"`
ShortContent string `xml:"short_content"`
FullContent string `xml:"full_content"`
Author string `xml:"author"`
Rating string `xml:"rating"`
Date struct {
Time string `xml:",chardata"`
Layout string `xml:"layout,attr"`
} `xml:"date"`
}
type Service ¶
type Service struct {
XMLName xml.Name `xml:"xml"`
Title string `xml:"title"`
Name string `xml:"name"`
EntityID string `xml:"entity_id"`
EntityType string `xml:"entity_type"`
Sources []Source `xml:"source"`
Rules []Rule `xml:"rule"`
ContentRule struct {
Content []ContentRuleField `xml:"content"`
} `xml:"content_rule"`
}
Click to show internal directories.
Click to hide internal directories.