cgminer

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

README

CGMINER Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "cgminer"
	// FuncEntityAction ...
	FuncEntityAction = "entityAction"
)
View Source
const (
	// SettingHost ...
	SettingHost = "host"
	// SettingPort ...
	SettingPort = "port"
	// SettingTimeout ...
	SettingTimeout = "timeout"
	// SettingUser ...
	SettingUser = "user"
	// SettingPass ...
	SettingPass = "pass"
	// SettingManufacturer ...
	SettingManufacturer = "manufacturer"
	// SettingModel ...
	SettingModel = "model"

	// StateEnabled ...
	StateEnabled = "ENABLED"
	// StateDisabled ...
	StateDisabled = "DISABLED"
	// StateError ...
	StateError = "ERROR"

	// ActionEnabled ...
	ActionEnabled = "ENABLE"
	// ActionDisable ...
	ActionDisable = "DISABLE"
	// ActionCheck ...
	ActionCheck = "CHECK"

	Version = "0.0.1"
)

Variables

Functions

func New

func New() supervisor.Pluggable

New ...

func NewActions

func NewActions() map[string]supervisor.ActorAction

entity action list

func NewAttr

func NewAttr() m.Attributes

store entity status in this struct

func NewSettings

func NewSettings() m.Attributes

entity settings

func NewStates

func NewStates() (states map[string]supervisor.ActorState)

state list entity

Types

type Actor

type Actor struct {
	*supervisor.BaseActor
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service supervisor.Service) (actor *Actor, err error)

NewActor ...

func (*Actor) Destroy added in v0.12.0

func (a *Actor) Destroy()

func (*Actor) SetState

func (e *Actor) SetState(params supervisor.EntityStateParams) error

SetState ...

func (*Actor) Spawn

func (e *Actor) Spawn()

Spawn ...

func (*Actor) Update

func (e *Actor) Update()

Update ...

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{}
}

IMiner ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL