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 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 spdb. 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 }
ManagerConfig defines manager service config
Click to show internal directories.
Click to hide internal directories.