Documentation ¶
Index ¶
- Constants
- func CheckBackendStatus(backend string) bool
- func DataDirectory() string
- func FileExists(filename string) bool
- func GetAutoStart() bool
- func GetCoinsPerDay(th int64) float64
- func GetDifficulty() float64
- func GetJson(url string, target interface{}) error
- func GetNetHash() uint64
- func GetTipHeight() int64
- func OpenBrowser(url string)
- func ParseVerthashMinerDeviceCfg(cfg string) map[int]VerthashMinerDeviceConfig
- func PostJson(url string, payload interface{}, target interface{}) error
- func PrepareBackgroundCommand(cmd *exec.Cmd)
- func ReplaceInFile(file string, find string, replace string) error
- func SetAutoStart(autoStart bool) string
- func ShaSum(file string) ([]byte, error)
- func UnpackTar(archive, unpackPath string) error
- func UnpackZip(archive, unpackPath string) error
- func VersionStringToNumeric(ver string) int64
- type Block
- type BlockResponse
- type BlocksResponse
- type GPU
- type GPUType
- type GithubRelease
- type InsightPagination
- type KnownGPU
- type VerthashMinerDeviceConfig
Constants ¶
View Source
const APP_NAME string = "vertcoin-ocm"
Variables ¶
This section is empty.
Functions ¶
func CheckBackendStatus ¶
Returns true if backend is good
func DataDirectory ¶
func DataDirectory() string
func FileExists ¶
func GetAutoStart ¶
func GetAutoStart() bool
func GetCoinsPerDay ¶
func GetDifficulty ¶
func GetDifficulty() float64
func GetNetHash ¶
func GetNetHash() uint64
func GetTipHeight ¶
func GetTipHeight() int64
func OpenBrowser ¶
func OpenBrowser(url string)
func ParseVerthashMinerDeviceCfg ¶
func ParseVerthashMinerDeviceCfg(cfg string) map[int]VerthashMinerDeviceConfig
func SetAutoStart ¶
func VersionStringToNumeric ¶
Types ¶
type BlockResponse ¶
type BlockResponse struct {
Bits uint32 `json:"bits"`
}
type BlocksResponse ¶
type BlocksResponse struct { Blocks []Block `json:"blocks"` Pagination InsightPagination `json:"pagination"` }
type GPU ¶
func GetGPUsFromStrings ¶
type GithubRelease ¶
type GithubRelease struct { URL string `json:"html_url"` Tag string `json:"tag_name"` Body string `json:"body"` Draft bool `json:"draft"` Prerelease bool `json:"prerelease"` }
func GetLatestRelease ¶
func GetLatestRelease() (GithubRelease, error)
type InsightPagination ¶
Click to show internal directories.
Click to hide internal directories.