utils

package
v1.25.12 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QubicTokenAutoRefresh added in v1.25.11

func QubicTokenAutoRefresh()

Types

type Qubic added in v1.25.9

type Qubic struct {
	AverageScore     float64 `json:"averageScore"`
	EstimatedIts     int64   `json:"estimatedIts"`
	SolutionsPerHour int64   `json:"solutionsPerHour"`
}

func QubicInfo added in v1.25.9

func QubicInfo(token string) (*Qubic, error)

type Utils

type Utils struct {
	MsgC chan string
	ErrC chan string
	// contains filtered or unexported fields
}

func NewUtils

func NewUtils() *Utils

func (*Utils) Base64Decode

func (t *Utils) Base64Decode(str string)

func (*Utils) Base64Encode

func (t *Utils) Base64Encode(str string)

func (*Utils) DecimalConv added in v1.4.6

func (t *Utils) DecimalConv(str string, from, to int)

func (*Utils) DecimalStrConv added in v1.5.0

func (t *Utils) DecimalStrConv(str string, from int)

func (*Utils) Hex2String added in v1.4.6

func (t *Utils) Hex2String(str string)

func (*Utils) JsonFormat

func (t *Utils) JsonFormat(str string)

func (*Utils) QubicProfit added in v1.25.9

func (t *Utils) QubicProfit(token string)

func (*Utils) QubicToken added in v1.25.11

func (t *Utils) QubicToken()

func (*Utils) RewardCal added in v1.12.2

func (t *Utils) RewardCal(h, d, r, time, val string)

func (*Utils) StrDecimalConv added in v1.5.0

func (t *Utils) StrDecimalConv(str string, to int)

func (*Utils) String2Hex added in v1.4.6

func (t *Utils) String2Hex(str string)

func (*Utils) TimeConvert

func (t *Utils) TimeConvert(date string)

func (*Utils) TimestampConvert

func (t *Utils) TimestampConvert(Timestamp string)

Jump to

Keyboard shortcuts

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