Documentation ¶
Index ¶
- Variables
- type Ip66
- type Ip66Setter
- type Kuaidaili
- type KuaidailiSetter
- type Parser
- type ParserSetter
- type ParserSetterSet
- func (p ParserSetterSet) DelParserSetter(name string)
- func (p ParserSetterSet) GetNames() []string
- func (p ParserSetterSet) GetParserSetter(name string) (ParserSetter, bool)
- func (p ParserSetterSet) GetParserSetters() []ParserSetter
- func (p ParserSetterSet) SetParserSetter(name string, setter ParserSetter) bool
- type Xici
- type XiciSetter
Constants ¶
This section is empty.
Variables ¶
View Source
var WebParsers = NewParserSetterSet()
Functions ¶
This section is empty.
Types ¶
type Ip66 ¶
type Ip66 struct {
// contains filtered or unexported fields
}
func (*Ip66) GetParserName ¶
func (*Ip66) PageParser ¶
type Ip66Setter ¶
type Ip66Setter struct{}
func (*Ip66Setter) SettingParser ¶
func (i *Ip66Setter) SettingParser() Parser
FIXME: [ ] Support: url: http://www.66ip.cn/%d.html
type Kuaidaili ¶
type Kuaidaili struct {
// contains filtered or unexported fields
}
func (*Kuaidaili) GetParserName ¶
func (*Kuaidaili) PageParser ¶
type KuaidailiSetter ¶
type KuaidailiSetter struct{}
func (*KuaidailiSetter) SettingParser ¶
func (k *KuaidailiSetter) SettingParser() Parser
type ParserSetter ¶
type ParserSetter interface {
SettingParser() Parser
}
type ParserSetterSet ¶
type ParserSetterSet map[string]ParserSetter
func NewParserSetterSet ¶
func NewParserSetterSet() ParserSetterSet
func (ParserSetterSet) DelParserSetter ¶
func (p ParserSetterSet) DelParserSetter(name string)
func (ParserSetterSet) GetNames ¶
func (p ParserSetterSet) GetNames() []string
func (ParserSetterSet) GetParserSetter ¶
func (p ParserSetterSet) GetParserSetter(name string) (ParserSetter, bool)
func (ParserSetterSet) GetParserSetters ¶
func (p ParserSetterSet) GetParserSetters() []ParserSetter
func (ParserSetterSet) SetParserSetter ¶
func (p ParserSetterSet) SetParserSetter(name string, setter ParserSetter) bool
type Xici ¶
type Xici struct {
// contains filtered or unexported fields
}
func (*Xici) GetParserName ¶
func (*Xici) PageParser ¶
type XiciSetter ¶
type XiciSetter struct{}
func (*XiciSetter) SettingParser ¶
func (x *XiciSetter) SettingParser() Parser
Click to show internal directories.
Click to hide internal directories.