Documentation
¶
Index ¶
Constants ¶
View Source
const ( Name = "cgminer" FuncEntityAction = "entityAction" )
View Source
const ( SettingHost = "host" SettingPort = "port" SettingTimeout = "timeout" SettingUser = "user" SettingPass = "pass" SettingManufacturer = "manufacturer" SettingModel = "model" StateEnabled = "ENABLED" StateDisabled = "DISABLED" StateError = "ERROR" ActionEnabled = "ENABLE" ActionDisable = "DISABLE" ActionCheck = "CHECK" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Actor ¶
type Actor struct {
entity_manager.BaseActor
// contains filtered or unexported fields
}
func NewActor ¶
func NewActor(entity *m.Entity, entityManager entity_manager.EntityManager, adaptors *adaptors.Adaptors, scriptService scripts.ScriptService, eventBus event_bus.EventBus) (actor *Actor, err error)
func (*Actor) SetState ¶
func (e *Actor) SetState(params entity_manager.EntityStateParams) error
func (*Actor) Spawn ¶
func (e *Actor) Spawn() entity_manager.PluginActor
type IMiner ¶
type IMiner interface {
Stats() (data []byte, err error)
Devs() (data []byte, err error)
Summary() (data []byte, err error)
Pools() (data []byte, err error)
AddPool(url string) (err error)
Version() (data []byte, err error)
Enable(poolId int64) error
Disable(poolId int64) error
Delete(poolId int64) error
SwitchPool(poolId int64) error
Restart() error
Quit() error
Bind() interface{}
}
Click to show internal directories.
Click to hide internal directories.