{"modulePath":"github.com/utmstack/UTMStack/plugins/soc-ai","version":"v0.0.0-20261126134315-738f65073a40","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Functions\n\n```go\nfunc ConnectionChecker(url string) error\n```\nConnectionChecker verifies connectivity to a URL with exponential backoff\n\n```go\nfunc ConvertFromJsonToStruct[responseType any](jsonString string) (responseType, error)\n```\n\n```go\nfunc ConvertFromStructToJsonString(alert interface{}) (string, error)\n```\n\n```go\nfunc DoParseReq[response any](url string, data []byte, method string, headers map[string]string, timeoutInSec int) (response, int, error)\n```\nDoParseReq makes an HTTP request and parses JSON response into the specified type\n\n```go\nfunc DoReq(url string, data []byte, method string, headers map[string]string, timeoutInSec int) ([]byte, int, error)\n```\nDoReq makes a standard HTTP request using the connection pool\n\n## Types\n\n```go\ntype RequestOptions struct {\n\tURL           string\n\tData          []byte\n\tMethod        string\n\tHeaders       map[string]string\n\tTimeoutSec    int\n\tBasicAuthUser string\n\tBasicAuthPass string\n}\n```\nRequestOptions configures HTTP request behavior\n\n","path":"github.com/utmstack/UTMStack/plugins/soc-ai/utils","name":"utils","synopsis":"","isRedistributable":true}
