From 0081f86f0d2389727345f124fd0b3652e192da1e Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 25 Oct 2022 17:18:21 +0200 Subject: [PATCH] src/api/interface.go: Adding ApiArguments struct. --- src/api/interface.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/api/interface.go b/src/api/interface.go index 910b6ac..e6233bc 100644 --- a/src/api/interface.go +++ b/src/api/interface.go @@ -5,6 +5,16 @@ import ( "github.com/eosswedenorg-go/haproxy/agentcheck" ) +/** + * Generic struct that is passed to factory functions + * to configure the API request. + */ +type ApiArguments struct { + Url string + Host string + NumBlocks int +} + type ApiInterface interface { // Returns Logging information