diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -4,7 +4,7 @@ import ( "time" "go.wit.com/gui" - pb "go.wit.com/lib/protobuf/virtbuf" + "go.wit.com/lib/protobuf/virtpb" ) var me virtigoT @@ -21,24 +21,24 @@ func (b *virtigoT) Enable() { // this app's variables type virtigoT struct { - cluster *pb.Cluster // basic cluster settings - myGui *gui.Node // the gui toolkit handle - e *pb.Events // virtbuf events - hmap map[*pb.Hypervisor]*HyperT // map to the local struct - names []string // ? - hypers []*HyperT // notsure - killcount int // how many times virtigo-d has had to been killed - unstable time.Time // the last time the cluster was incorrect - changed bool // have things changed? - hyperPollDelay time.Duration // how often to poll the hypervisors - unstableTimeout time.Duration // how long a droplet can be unstable until it's declared dead - clusterStableDuration time.Duration // how long the cluster must be stable before new droplets can be started - missingDropletTimeout time.Duration // how long a droplet can be missing for + cluster *virtpb.Cluster // basic cluster settings + myGui *gui.Node // the gui toolkit handle + e *virtpb.Events // virt protobuf events + hmap map[*virtpb.Hypervisor]*HyperT // map to the local struct + names []string // ? + hypers []*HyperT // notsure + killcount int // how many times virtigo-d has had to been killed + unstable time.Time // the last time the cluster was incorrect + changed bool // have things changed? + hyperPollDelay time.Duration // how often to poll the hypervisors + unstableTimeout time.Duration // how long a droplet can be unstable until it's declared dead + clusterStableDuration time.Duration // how long the cluster must be stable before new droplets can be started + missingDropletTimeout time.Duration // how long a droplet can be missing for } // the stuff that is needed for a hypervisor type HyperT struct { - pb *pb.Hypervisor // the Hypervisor protobuf + pb *virtpb.Hypervisor // the Hypervisor protobuf dog *time.Ticker // the watchdog timer itself lastpoll time.Time // the last time the hypervisor polled lastDroplets map[string]time.Time // the vm's in the last poll |
