mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-19 05:10:02 +02:00
src/api/debug.go: Adding DebugApiFactory function
This commit is contained in:
parent
6e8ffe718e
commit
39927a2441
2 changed files with 16 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ func parseResponse(resp string) (agentcheck.Response, error) {
|
|||
return agentcheck.NewStatusResponse(rtype), nil
|
||||
}
|
||||
|
||||
func DebugApiFactory(args ApiArguments) ApiInterface {
|
||||
return NewDebugApi(args.Url)
|
||||
}
|
||||
|
||||
func NewDebugApi(response string) DebugApi {
|
||||
|
||||
resp, _ := parseResponse(response)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue