mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-24 10:23:43 +02:00
internal/api/interface.go: make Call() accept a context as parameter.
This commit is contained in:
parent
b815bcee44
commit
dbf59d1305
10 changed files with 47 additions and 30 deletions
|
|
@ -1,6 +1,8 @@
|
|||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/eosswedenorg-go/haproxy/agentcheck"
|
||||
)
|
||||
|
||||
|
|
@ -27,5 +29,5 @@ type ApiInterface interface {
|
|||
LogInfo() LogParams
|
||||
|
||||
// Call api and validate it's status.
|
||||
Call() (agentcheck.Response, string)
|
||||
Call(ctx context.Context) (agentcheck.Response, string)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue