You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
486 B
21 lines
486 B
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 |
|
// }
|
|
|