backend

package
v0.0.0-...-7c1506c Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(alreadyRunning bool) (*Backend, error)

func (*Backend) ActivationInformation

func (m *Backend) ActivationInformation()

func (*Backend) Address

func (m *Backend) Address() string

func (*Backend) AlreadyRunning

func (m *Backend) AlreadyRunning() bool

func (*Backend) BackendServerSelector

func (m *Backend) BackendServerSelector()

Will be run at startup Additionally it can be run if the backend returns an error after startup

func (*Backend) ChainNetworkApplicableToPayout

func (m *Backend) ChainNetworkApplicableToPayout() bool

func (*Backend) CheckGPUCompatibility

func (m *Backend) CheckGPUCompatibility() error

func (*Backend) Close

func (m *Backend) Close()

func (*Backend) CreateMinerBinaries

func (m *Backend) CreateMinerBinaries() ([]*miners.BinaryRunner, error)

func (*Backend) DisableTracking

func (m *Backend) DisableTracking()

func (*Backend) EnableTracking

func (m *Backend) EnableTracking()

func (*Backend) GetArgs

func (m *Backend) GetArgs() miners.BinaryArguments

func (*Backend) GetAutoStart

func (m *Backend) GetAutoStart() bool

func (*Backend) GetClosedSource

func (m *Backend) GetClosedSource() bool

func (*Backend) GetCustomAddress

func (m *Backend) GetCustomAddress() string

func (*Backend) GetDebugging

func (m *Backend) GetDebugging() bool

func (*Backend) GetEnableIntegrated

func (m *Backend) GetEnableIntegrated() bool

func (*Backend) GetKickbackPayoutID

func (m *Backend) GetKickbackPayoutID(selectedPoolID int, selectedPayoutID int) int

func (*Backend) GetLocale

func (m *Backend) GetLocale() string

func (*Backend) GetMiningAddress

func (m *Backend) GetMiningAddress() string

func (*Backend) GetMiningPassword

func (m *Backend) GetMiningPassword() string

func (*Backend) GetNetwork

func (m *Backend) GetNetwork() string

func (*Backend) GetNetworks

func (m *Backend) GetNetworks(selectedPoolID int, selectedPayoutID int) []NetworkChoice

func (*Backend) GetPayout

func (m *Backend) GetPayout() int

func (*Backend) GetPayoutTicker

func (m *Backend) GetPayoutTicker() string

func (*Backend) GetPayouts

func (m *Backend) GetPayouts(selectedPoolID int) []PayoutChoice

func (*Backend) GetPool

func (m *Backend) GetPool() int

func (*Backend) GetPoolFee

func (m *Backend) GetPoolFee() string

func (*Backend) GetPoolName

func (m *Backend) GetPoolName() string

func (*Backend) GetPools

func (m *Backend) GetPools() []PoolChoice

func (*Backend) GetSkipVerthashExtendedVerify

func (m *Backend) GetSkipVerthashExtendedVerify() bool

func (*Backend) GetTestnet

func (m *Backend) GetTestnet() bool

func (*Backend) GetVersion

func (m *Backend) GetVersion() string

func (*Backend) InitWallet

func (m *Backend) InitWallet(password string) bool

func (*Backend) InstallMinerBinaries

func (m *Backend) InstallMinerBinaries() error

func (*Backend) OpenDownloadUrl

func (m *Backend) OpenDownloadUrl(url string)

func (*Backend) PayoutInformation

func (m *Backend) PayoutInformation()

func (*Backend) PayoutIsDogecoin

func (m *Backend) PayoutIsDogecoin() bool

func (*Backend) PayoutIsVertcoin

func (m *Backend) PayoutIsVertcoin() bool

func (*Backend) PerformChecks

func (m *Backend) PerformChecks() string

func (*Backend) PoolIsHashCryptos

func (m *Backend) PoolIsHashCryptos() bool

func (*Backend) PoolIsZergpool

func (m *Backend) PoolIsZergpool() bool

func (*Backend) PrepareSweep

func (m *Backend) PrepareSweep(addr string) string

func (*Backend) PrerequisiteProxyLoop

func (m *Backend) PrerequisiteProxyLoop()

func (*Backend) RefreshBalance

func (m *Backend) RefreshBalance()

func (*Backend) RefreshHashrate

func (m *Backend) RefreshHashrate()

func (*Backend) RefreshRunningState

func (m *Backend) RefreshRunningState()

func (*Backend) ReportIssue

func (m *Backend) ReportIssue()

func (*Backend) ResetCustomAddress

func (m *Backend) ResetCustomAddress()

func (*Backend) ResetNetwork

func (m *Backend) ResetNetwork()

func (*Backend) ResetPayout

func (m *Backend) ResetPayout()

func (*Backend) ResetPool

func (m *Backend) ResetPool()

func (*Backend) ResetWalletAddress

func (m *Backend) ResetWalletAddress()

func (*Backend) SendSweep

func (m *Backend) SendSweep(password string) []string

func (*Backend) SetAutoStart

func (m *Backend) SetAutoStart(newAutoStart bool)

func (*Backend) SetClosedSource

func (m *Backend) SetClosedSource(newClosedSource bool)

func (*Backend) SetCustomAddress

func (m *Backend) SetCustomAddress(newCustomAddress string)

func (*Backend) SetDebugging

func (m *Backend) SetDebugging(newDebugging bool)

func (*Backend) SetEnableIntegrated

func (m *Backend) SetEnableIntegrated(enabled bool)

func (*Backend) SetNetwork

func (m *Backend) SetNetwork(network string)

func (*Backend) SetPayout

func (m *Backend) SetPayout(payout int)

func (*Backend) SetPool

func (m *Backend) SetPool(pool int)

func (*Backend) SetSkipVerthashExtendedVerify

func (m *Backend) SetSkipVerthashExtendedVerify(newVerthashVerify bool)

func (*Backend) SetTestnet

func (m *Backend) SetTestnet(newTestnet bool)

func (*Backend) ShowTx

func (m *Backend) ShowTx(txid string)

func (*Backend) StartMining

func (m *Backend) StartMining() bool

func (*Backend) StopMining

func (m *Backend) StopMining() bool

func (*Backend) TrackingEnabled

func (m *Backend) TrackingEnabled() string

func (*Backend) UpdateAvailable

func (m *Backend) UpdateAvailable() bool

func (*Backend) UpdateLoop

func (m *Backend) UpdateLoop()

func (*Backend) UseCustomPayout

func (m *Backend) UseCustomPayout() bool

func (*Backend) ValidCustomAddress

func (m *Backend) ValidCustomAddress() bool

TODO: Improve address validation

func (*Backend) VersionDetails

func (m *Backend) VersionDetails() []string

func (*Backend) WailsInit

func (m *Backend) WailsInit(runtime *wails.Runtime) error

func (*Backend) WalletInitialized

func (m *Backend) WalletInitialized() int

type NetworkChoice

type NetworkChoice struct {
	Name string `json:"name"`
}

type PayoutChoice

type PayoutChoice struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type PoolChoice

type PoolChoice struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type PrepareResult

type PrepareResult struct {
	FormattedAmount      string
	NumberOfTransactions int
}

Jump to

Keyboard shortcuts

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