Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
wb
gocrawlhq
Commits
2d1dd735
Commit
2d1dd735
authored
Jun 02, 2022
by
Corentin Barreau
⚜
Browse files
Merge branch 'childcrawls' into 'master'
Add: support for localCrawls See merge request
!4
parents
277845f1
2e55eaff
Changes
2
Hide whitespace changes
Inline
Side-by-side
finished.go
View file @
2d1dd735
...
...
@@ -7,14 +7,15 @@ import (
"net/http"
)
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
,
URLs
:
URLs
,
Project
:
c
.
Project
,
LocalCrawls
:
localCrawls
,
URLs
:
URLs
,
}
jsonPayload
,
err
:=
json
.
Marshal
(
payload
)
...
...
models.go
View file @
2d1dd735
...
...
@@ -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"`
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment