Documentation ¶
Index ¶
- type Content
- type DbHost
- type Host
- type Meta
- func (in *Meta) GetContent() *Content
- func (in *Meta) GetHash() string
- func (in *Meta) GetHostID() sql.NullInt64
- func (in *Meta) GetMeta(urlID int64) *database.Meta
- func (in *Meta) GetReferer() *Meta
- func (in *Meta) GetState() database.State
- func (in *Meta) GetURL() string
- func (in *Meta) NeedWaitAfterRequest() bool
- func (in *Meta) SetContent(content *Content)
- func (in *Meta) SetOrigin(origin sql.NullInt64)
- func (in *Meta) SetState(state database.State)
- func (in *Meta) SetStatusCode(statusCode int)
- type PageData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
Content - proxy struct for database.Content
type DbHost ¶
type DbHost interface { // GetHosts - return map[id]Host GetHosts() (map[int64]*Host, error) // AddHost - baseURL: init url for host AddHost(host *Host, baseURL string) (int64, error) }
DbHost - database interface for work with host
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Host - proxy struct for database.Host
func (*Host) GetRobotsTxt ¶
GetRobotsTxt - get data for init robots.txt
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
Meta - proxy struct for database.Meta
func (*Meta) NeedWaitAfterRequest ¶
NeedWaitAfterRequest - Check is need wait after request by state
func (*Meta) SetStatusCode ¶
SetStatusCode - set new status code
type PageData ¶
type PageData struct {
// contains filtered or unexported fields
}
PageData - full info from page
func NewPageData ¶
NewPageData - create PageData
func (*PageData) GetParentURL ¶
GetParentURL - get field parentURL
func (*PageData) SetParentURL ¶
SetParentURL - set field parentURL
Click to show internal directories.
Click to hide internal directories.