Skip to content

golang/vaas/v3.0.11

Compare
Choose a tag to compare
@doxthree doxthree released this 29 Nov 16:17
· 13 commits to main since this release
e00a463

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

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"
  1. Remove vaas.Connect() and awaiting for the termChan
  2. The vaas instance does not have to be closed anymore
  3. 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)
  1. 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