Documentation ¶
Index ¶
- Variables
- type AddPayload
- type Client
- func (c *Client) Add(ctx context.Context, URLs []URL, bypassSeencheck bool) (err error)
- func (c *Client) Delete(ctx context.Context, URLs []URL, localCrawls int) (err error)
- func (c *Client) Get(ctx context.Context, size int, strategy string) (URLs []URL, err error)
- func (c *Client) GetProject(ctx context.Context) (p *Project, err error)
- func (c *Client) Identify(msg *IdentifyMessage) (err error)
- func (c *Client) InitWebsocketConn() (err error)
- func (c *Client) Reset(ctx context.Context) (err error)
- func (c *Client) ResetURL(ctx context.Context, ID string) (err error)
- func (c *Client) Seencheck(ctx context.Context, URLs []URL) (outputURLs []URL, err error)
- type DeletePayload
- type GetResponse
- type IdentifyMessage
- type Project
- type URL
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "1.2.15"
)
Functions ¶
This section is empty.
Types ¶
type AddPayload ¶
type Client ¶
type Client struct { Key string Secret string Project string HQAddress string Identifier string URLsEndpoint *url.URL SeencheckEndpoint *url.URL ResetEndpoint *url.URL ProjectEndpoint *url.URL HTTPClient *http.Client WebsocketConn *net.Conn }
func (*Client) GetProject ¶
func (*Client) Identify ¶
func (c *Client) Identify(msg *IdentifyMessage) (err error)
func (*Client) InitWebsocketConn ¶
type DeletePayload ¶
type GetResponse ¶
type IdentifyMessage ¶
type Project ¶
type Project struct { Paused bool `json:"paused"` Name string `json:"name"` Exclusions []string `json:"exclusions"` SeencheckEnabled bool `json:"seencheck_enabled"` SeencheckTTL int `json:"seencheck_ttl"` Stats struct { Pending int `json:"pending"` Processing int `json:"processing"` CompletedSeeds int `json:"completed_seeds"` CompletedAssets int `json:"completed_assets"` } `json:"stats"` }
type URL ¶
type URL struct { ID string `json:"id" db:"id"` Value string `json:"value" db:"value"` Via string `json:"via,omitempty" db:"via"` Host string `json:"host,omitempty" db:"host"` Path string `json:"path,omitempty" db:"path"` Type string `json:"type,omitempty" db:"type"` Crawler string `json:"crawler,omitempty" db:"crawler"` Status string `json:"status" db:"status"` LiftOff int64 `json:"lift_off" db:"lift_off"` Timestamp int64 `json:"timestamp" db:"timestamp"` }
Click to show internal directories.
Click to hide internal directories.