bilibili-backup/app/admin/main/bfs/model/volume.go
2019-04-22 02:59:20 +00:00

22 lines
486 B
Go

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
// }