Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// RefreshSPInfoAndStorageParamsTimer define the period of refresh sp info and storage params
RefreshSPInfoAndStorageParamsTimer = 5 * 60
)
Functions ¶
This section is empty.
Types ¶
type GCWorker ¶ added in v0.2.0
type GCWorker struct {
// contains filtered or unexported fields
}
GCWorker is responsible for releasing the space occupied by the deleted object in the piece-store. TODO: Will be refactored into task-node in the future.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager module is responsible for implementing internal management functions. Currently, it supports periodic update of sp info list and storage params information in sp-db. TODO: support gc and configuration management, etc.
func NewManagerService ¶
func NewManagerService(cfg *ManagerConfig) (*Manager, error)
NewManagerService returns an instance of manager
type ManagerConfig ¶
type ManagerConfig struct { SpOperatorAddress string ChainConfig *gnfd.GreenfieldChainConfig SpDBConfig *config.SQLDBConfig MetadataGrpcAddress string PieceStoreConfig *storage.PieceStoreConfig }
ManagerConfig defines manager service config
Click to show internal directories.
Click to hide internal directories.