helpers

package
v0.0.0-...-5ee63da Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(urlStr string) *url.URL

func SelectFileWithDialog

func SelectFileWithDialog(label *widget.Label, settingsPath *string)

func StartMining

func StartMining(host, address, xmrigpath, p2poolpath string) error

func StopMining

func StopMining() error

Types

type Hashrate

type Hashrate struct {
	Total   []float64 `json:"total"`
	Highest float64   `json:"highest"`
}

func GetXmrigStats

func GetXmrigStats() Hashrate

type SummaryResponse

type SummaryResponse struct {
	Hashrate Hashrate `json:"hashrate"`
}

type User

type User struct {
	Name        string `json:"name"`
	GitHub      string `json:"github"`
	X           string `json:"x"`
	Website     string `json:"website"`
	Address     string `json:"address"`
	Description string `json:"description"`
}

func LoadUsers

func LoadUsers() []User

type UsersData

type UsersData struct {
	Users []User `json:"users"`
}

Jump to

Keyboard shortcuts

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