diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -3,6 +3,7 @@ package main import ( "time" + "go.wit.com/gui" pb "go.wit.com/lib/protobuf/virtbuf" ) @@ -20,19 +21,19 @@ func (b *virtigoT) Enable() { // this app's variables type virtigoT struct { - cluster *pb.Cluster // basic cluster settings - // newc *pb.Cluster // basic cluster settings + 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 - killcount int - unstable time.Time // the last time the cluster was incorrect - changed bool - 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 + 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 |
