mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/etcd-agent: add main func
This commit is contained in:
parent
c3f32504ec
commit
9e69aba7aa
@ -14,6 +14,21 @@
|
|||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"flag"
|
||||||
|
"log"
|
||||||
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
panic("not implemented")
|
etcdPath := flag.String("etcd-path", "/opt/etcd/bin/etcd", "")
|
||||||
|
flag.Parse()
|
||||||
|
|
||||||
|
a, err := newAgent(*etcdPath)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
a.serveRPC()
|
||||||
|
|
||||||
|
var done chan struct{}
|
||||||
|
<-done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user