diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 15:23:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 15:23:04 -0600 |
| commit | 9f9a52312e6e9538e7ec4c0eefbe46aace352fd3 (patch) | |
| tree | 7f22f8040ab9b133b83ca08a78902ee9aac89b5c /structs.go | |
| parent | 6e111ba862d3f9b9179e9ac71468b6c4f25cbf20 (diff) | |
first gui for virtigo! easy with proto pb tables
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 |
