forked from vieter-v/vieter
feat(agent): partially wrote daemon code
This commit is contained in:
parent
7ef8d4b846
commit
6f23d690a7
6 changed files with 116 additions and 13 deletions
11
src/client/jobs.v
Normal file
11
src/client/jobs.v
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
module client
|
||||
|
||||
import build { BuildConfig }
|
||||
|
||||
pub fn (c &Client) poll_jobs(max int) ![]BuildConfig {
|
||||
data := c.send_request<[]BuildConfig>(.get, '/api/v1/jobs/poll', {
|
||||
'max': max.str()
|
||||
})!
|
||||
|
||||
return data.data
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue