bilibili-backup/app/admin/main/bfs/model/volume.go

22 lines
486 B
Go
Raw Normal View History

2019-04-22 10:59:20 +08:00
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
// }