mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-13 19:09:38 +00:00
14 lines
255 B
Go
14 lines
255 B
Go
|
package woodpecker
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
const pathQueue = "%s/api/queue"
|
||
|
|
||
|
// QueueInfo returns queue info.
|
||
|
func (c *client) QueueInfo() (*Info, error) {
|
||
|
out := new(Info)
|
||
|
uri := fmt.Sprintf(pathQueue+"/info", c.addr)
|
||
|
err := c.get(uri, out)
|
||
|
return out, err
|
||
|
}
|