switch from virtbuf to virtpb
This commit is contained in:
parent
b322484e48
commit
72748544f7
6
http.go
6
http.go
|
@ -11,7 +11,7 @@ import (
|
||||||
"libvirt.org/go/libvirtxml"
|
"libvirt.org/go/libvirtxml"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/shell"
|
"go.wit.com/lib/gui/shell"
|
||||||
pb "go.wit.com/lib/protobuf/virtbuf"
|
"go.wit.com/lib/protobuf/virtpb"
|
||||||
"go.wit.com/lib/virtigolib"
|
"go.wit.com/lib/virtigolib"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
@ -139,8 +139,8 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// fmt.Fprintln(w, "HTTP:", r.Body)
|
// fmt.Fprintln(w, "HTTP:", r.Body)
|
||||||
var d *pb.Droplet
|
var d *virtpb.Droplet
|
||||||
d = new(pb.Droplet)
|
d = new(virtpb.Droplet)
|
||||||
// msg, err := ioutil.ReadAll(r.Body) // Read the body as []byte
|
// msg, err := ioutil.ReadAll(r.Body) // Read the body as []byte
|
||||||
fmt.Fprintln(w, "/start ReadAll() START")
|
fmt.Fprintln(w, "/start ReadAll() START")
|
||||||
fmt.Fprintln(w, "msg =", string(msg))
|
fmt.Fprintln(w, "msg =", string(msg))
|
||||||
|
|
4
start.go
4
start.go
|
@ -5,13 +5,13 @@ package main
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
pb "go.wit.com/lib/protobuf/virtbuf"
|
"go.wit.com/lib/protobuf/virtpb"
|
||||||
"go.wit.com/lib/virtigolib"
|
"go.wit.com/lib/virtigolib"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
"libvirt.org/go/libvirtxml"
|
"libvirt.org/go/libvirtxml"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newStart(start string, d *pb.Droplet) error {
|
func newStart(start string, d *virtpb.Droplet) error {
|
||||||
if d == nil {
|
if d == nil {
|
||||||
log.Info("log.Info: droplet is unknown:", start)
|
log.Info("log.Info: droplet is unknown:", start)
|
||||||
return errors.New("droplet is unknown: " + start)
|
return errors.New("droplet is unknown: " + start)
|
||||||
|
|
Loading…
Reference in New Issue