powLogs

package
v2.22.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(h string)

func TrackEvent

func TrackEvent(data PowLog)

func TrackHashrate

func TrackHashrate(hashrate data.MinerHashRate)

Types

type PowLog

type PowLog struct {
	POWTime string // YYYY-MM-DD HH::MM:ss (triggers are every hour on the hour and randomly within the hour)
	// t := time.Now(); t.Format(time.RFC3339)
	Caller   string // cron or rp
	CallerID string // cron or rp public address
	Step     string // text instead of numbers, this way we can query by giving a sort order to the events if we know all the steps, and we do not need to reorder all events if we add one in between
	Payload  string // a json payload
	Status   string // log/info/warn/error a way to split an event payload into multiple entries to then be able to filter logs
}

Jump to

Keyboard shortcuts

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