golang/vaas/v3.0.11
doxthree
released this
29 Nov 16:17
·
13 commits
to main
since this release
Golang Verdict-as-a-Service SDK, 3.0.11
What's Changed
We switched to a pure HTTP API. This means:
- No more Websockets
- No connection hassle
PR
- golang HTTP API by @GermanCoding in #654
How to migrate
1 . Import v3 Packages
"github.com/GDATASoftwareAG/vaas/golang/vaas/v3/pkg/authenticator"
"github.com/GDATASoftwareAG/vaas/golang/vaas/v3/pkg/vaas"
- Remove vaas.Connect() and awaiting for the termChan
- The vaas instance does not have to be closed anymore
- vaas.New(url, authenticator) wants a parsed url instead of string
vaasURL, err := url.Parse(vaasURLString)
if err != nil {
log.Fatal("VAAS_URL is not an URL")
}
vaasClient := vaas.New(vaasURL, auth)
- The global request options has been removed in favor of per-request options. To use the default, set the options to nil.
Full Changelog: py5.1.1...golang/vaas/v3.0.11