Skip to content

opsrampdeveloper/haproxyconfigparser

 
 

Repository files navigation

haproxyconfigparser

CircleCI Go Report Card

HAProxy config parser for Golang, but under development.

Behavior

  • It parses HAProxy config and binds to golang struct.
  • Analysis ACL, make its reference beteen frontend and backends.

Usage

main.go

package main

import (
	"fmt"
	"github.com/tkmgo/haproxyconfigparser"
)

func main() {
	config, _ := haproxyconfigparser.ParseFromStdin()
	fmt.Println(config)
}
$ cat haproxy.cfg | go run main.go

About

HAProxy config parser in golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%