Documentation ¶
Index ¶
- Variables
- type BAMStatus
- type Controller
- type Data
- type Group
- type Manager
- type RebootConfig
- type Result
- func NewCGQuitGetCtrl() Result
- func NewCGQuitPostCtrl(mgr monitor.Manager, client miner.Client) Result
- func NewCGRestartGetCtrl(mgr monitor.Manager, client miner.Client) Result
- func NewCGRestartPostCtrl(mgr monitor.Manager, client miner.Client) Result
- func NewCGStartGetCtrl() Result
- func NewCGStartPostCtrl(mgr monitor.Manager, miner os.Miner) Result
- func NewCgMinerExporterCtrl(client cgminer_client.Client, version miner.Version) Result
- func NewConfigDHCPCtrl(mgr monitor.Manager, networking os.Networking, cfgNet cgminer.ConfigNetwork) Result
- func NewConfigFrequencyCtrl(mgr monitor.Manager, cfgFreq cgminer.ConfigFrequency, client miner.Client) Result
- func NewConfigIPCtrl(mgr monitor.Manager, networking os.Networking, cfgNet cgminer.ConfigNetwork) Result
- func NewGetPoolsCtrl(poolCfg cgminer.ConfigPools) Result
- func NewNodeExporterCtrl() Result
- func NewNtpdateGetCtrl() Result
- func NewNtpdatePostCtrl(ntpdate os.Ntpdate) Result
- func NewPutLocationCtrl(mgr monitor.Manager, location agent.ConfigLocation) Result
- func NewPutPoolsCtrl(mgr monitor.Manager, poolCfg cgminer.ConfigPools, client miner.Client) Result
- func NewRebootForceGetCtrl() Result
- func NewRebootForcePostCtrl(reboot os.Reboot) Result
- func NewRebootGetCtrl() Result
- func NewRebootPostCtrl(cfg RebootConfig, reboot os.Reboot) Result
- func NewStatusCtrl(agentVersion agent.Version, minerVersion miner.Version, ...) Result
- func NewUpdateCtrl() Result
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var CgminerQuitModule = fx.Provide( NewCGQuitGetCtrl, NewCGQuitPostCtrl, )
View Source
var CgminerRestartModule = fx.Provide( NewCGRestartGetCtrl, NewCGRestartPostCtrl, )
View Source
var CgminerStartModule = fx.Provide( NewCGStartGetCtrl, NewCGStartPostCtrl, )
View Source
var ConfigPoolsModule = fx.Provide( NewPutPoolsCtrl, NewGetPoolsCtrl, )
View Source
var Module = fx.Options( fx.Provide(func(cfg agent.ControllerConfig) RebootConfig { return RebootConfig{ Delay: cfg.Reboot.Delay, } }), CgminerQuitModule, CgminerRestartModule, CgminerStartModule, ConfigPoolsModule, NtpdateModule, RebootModule, fx.Provide( NewManager, NewConfigDHCPCtrl, NewConfigFrequencyCtrl, NewConfigIPCtrl, NewPutLocationCtrl, NewGetPoolsCtrl, NewStatusCtrl, NewUpdateCtrl, NewCgMinerExporterCtrl, NewNodeExporterCtrl, ), )
View Source
var NtpdateModule = fx.Provide( NewNtpdateGetCtrl, NewNtpdatePostCtrl, )
View Source
var RebootModule = fx.Provide( NewRebootGetCtrl, NewRebootPostCtrl, NewRebootForceGetCtrl, NewRebootForcePostCtrl, )
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Controllers []*Controller MatchFunc func(methods []string, path string, handler echo.HandlerFunc, middleware ...echo.MiddlewareFunc) []*echo.Route }
type Group ¶
type Group struct { fx.In Controllers []*Controller `group:"controller"` }
type RebootConfig ¶
type Result ¶
type Result struct { fx.Out Controller *Controller `group:"controller"` }
func NewCGQuitGetCtrl ¶
func NewCGQuitGetCtrl() Result
func NewCGRestartGetCtrl ¶
func NewCGRestartPostCtrl ¶
func NewCGStartGetCtrl ¶
func NewCGStartGetCtrl() Result
func NewCgMinerExporterCtrl ¶
func NewCgMinerExporterCtrl(client cgminer_client.Client, version miner.Version) Result
func NewConfigDHCPCtrl ¶
func NewConfigDHCPCtrl(mgr monitor.Manager, networking os.Networking, cfgNet cgminer.ConfigNetwork) Result
func NewConfigFrequencyCtrl ¶
func NewConfigIPCtrl ¶
func NewConfigIPCtrl(mgr monitor.Manager, networking os.Networking, cfgNet cgminer.ConfigNetwork) Result
func NewGetPoolsCtrl ¶
func NewGetPoolsCtrl(poolCfg cgminer.ConfigPools) Result
func NewNodeExporterCtrl ¶
func NewNodeExporterCtrl() Result
func NewNtpdateGetCtrl ¶
func NewNtpdateGetCtrl() Result
func NewNtpdatePostCtrl ¶
func NewPutLocationCtrl ¶
func NewPutLocationCtrl(mgr monitor.Manager, location agent.ConfigLocation) Result
func NewPutPoolsCtrl ¶
func NewRebootForceGetCtrl ¶
func NewRebootForceGetCtrl() Result
func NewRebootForcePostCtrl ¶
func NewRebootGetCtrl ¶
func NewRebootGetCtrl() Result
func NewRebootPostCtrl ¶
func NewRebootPostCtrl(cfg RebootConfig, reboot os.Reboot) Result
func NewStatusCtrl ¶
func NewUpdateCtrl ¶
func NewUpdateCtrl() Result
Click to show internal directories.
Click to hide internal directories.