Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TRYTIMES = 3
View Source
var WAITTIME = 10
Functions ¶
func RegisterDrivers ¶
func RegisterDrivers(svcCtx *ServiceContext)
Types ¶
type DriverCenter ¶
type DriverCenter struct { Total int64 Success int64 Failed map[int64]error // contains filtered or unexported fields }
func (*DriverCenter) InitDriver ¶
func (dc *DriverCenter) InitDriver(OutTime time.Duration, enabledStoreages []*storage_manager.StorageModel)
func (*DriverCenter) UpdataStorageStatus ¶
func (dc *DriverCenter) UpdataStorageStatus(scv *ServiceContext)
type ServiceContext ¶
type ServiceContext struct { Config config.Config StorageManageRpc storagemanager.StorageManager DriverCenter DriverCenter }
func NewServiceContext ¶
func NewServiceContext(c config.Config) *ServiceContext
Click to show internal directories.
Click to hide internal directories.