goDiscoverEtcd is a simple library to query https://discovery.etcd.io/new
and return a single URL which you can use to build your etcd cluster.
Just include the library in your go program:
import "github.com/doublerr/goDiscoverEtcd"
Here is an exmaple app:
package main
import "fmt"
import "github.com/doublerr/goDiscoverEtcd"
func main() {
url := goDiscoverEtcd.GetDiscoveryURL(3)
fmt.Printf(url)
}
- Fork
- code
- contribute
Ryan Richard ([email protected])