Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package model
// type Volumes struct {
// Vol map[string]*VolumeState
// }
// VolumeState for zk /volume stat
type VolumeState struct {
TotalWriteProcessed uint64 `json:"total_write_processed"`
TotalWriteDelay uint64 `json:"total_write_delay"`
FreeSpace uint32 `json:"free_space"`
Dir string `json:"dir"`
}
// func (v *Volumes) GetVolumeState(id string) *VolumeState {
// vs, ok := v.Vol[id]
// if !ok {
// return nil
// }
// return vs
// }