Commit 2d1dd735 authored by Corentin Barreau's avatar Corentin Barreau
Browse files

Merge branch 'childcrawls' into 'master'

Add: support for localCrawls

See merge request !4
parents 277845f1 2e55eaff
......@@ -7,14 +7,15 @@ import (
func (c *Client) Finished(URLs []URL) (finishedResponse *FinishedResponse, err error) {
func (c *Client) Finished(URLs []URL, localCrawls int) (finishedResponse *FinishedResponse, err error) {
expectedStatusCode := 200
finishedResponse = new(FinishedResponse)
// build payload
payload := FinishedPayload{
Project: c.Project,
Project: c.Project,
LocalCrawls: localCrawls,
jsonPayload, err := json.Marshal(payload)
......@@ -41,6 +41,7 @@ type DiscoveredPayload struct {
type FinishedPayload struct {
Project string `json:"project"`
URLs []URL `json:"urls"`
Project string `json:"project"`
LocalCrawls int `json:"localCrawls"`
URLs []URL `json:"urls"`
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment