Documentation
¶
Index ¶
- Constants
- func MapFromTerms(text string) *map[string]struct{}
- type ExtJar
- type Offset
- type Parser
- func (p *Parser) Filter(name string) []*Tag
- func (p *Parser) First(name string) *Tag
- func (p *Parser) GetBody() []byte
- func (p *Parser) GetJoinedText(separator byte) string
- func (p *Parser) GetRoot() *Tag
- func (p *Parser) GetSize() int
- func (p *Parser) GetTagMap() map[string]struct{}
- func (p *Parser) GetTags(query string) *[]*Tag
- func (p *Parser) GetText() string
- func (p *Parser) Query(query string) *Query
- type Query
- type QueryTag
- type Request
- type Tag
- type WebClient
- func (c *WebClient) Fetch(url string) (*[]byte, error)
- func (c *WebClient) FetchParseAsync(request *Request) (p *Parser, err error)
- func (c *WebClient) FetchParseSync(request *Request) (p *Parser, err error)
- func (c *WebClient) FetchSync(request *Request) error
- func (c *WebClient) GetHttpClient() *http.Client
- func (c *WebClient) LoadCookies()
- func (c *WebClient) PersistCookies()
- func (c *WebClient) SetChunkSize(size int)
- func (c *WebClient) SetUserAgent(agent string)
Constants ¶
View Source
const ( FAILED = -1 PARSING = 0 )
Variables ¶
This section is empty.
Functions ¶
func MapFromTerms ¶
Types ¶
type Parser ¶
type Parser struct {
Done bool
Complete *bool
DataChan chan *[]byte
ParseComplete chan struct{}
InBound func(int) bool
GetOffsetList func() []*Tag
Mu sync.Mutex
Request *Request
// contains filtered or unexported fields
}
func NewEscapedParser ¶
func (*Parser) GetJoinedText ¶
type WebClient ¶
type WebClient struct {
// contains filtered or unexported fields
}
func (*WebClient) FetchParseAsync ¶
func (*WebClient) FetchParseSync ¶
func (*WebClient) GetHttpClient ¶
func (*WebClient) LoadCookies ¶
func (c *WebClient) LoadCookies()
func (*WebClient) PersistCookies ¶
func (c *WebClient) PersistCookies()
func (*WebClient) SetChunkSize ¶
func (*WebClient) SetUserAgent ¶
Click to show internal directories.
Click to hide internal directories.