Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Haproxy Dataplane Go lang

A client library for interacting with the Haproxy Dataplane API V2 for listing, creating, updating and delete haproxy definitions like:

  • basic informations
  • backends
  • frontends
  • backends and frontends rules
  • servers
  • acls
  • http rules
  • filters and more.

Example usage:

// creating a client
client, error := haproxy.NewHaproxyClient("http://127.0.0.1", "user", "password", false)

// listing backends
backends, err := client.GetBackends()

//listing acls (eg: parent type, parent name)
servers, err := client.GetAcls("frontend", "foo")

for other informations refer to the HaProxy Dataplane V2 API spec.