Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
Types ¶
type PowManager ¶
type PowManager struct {
// contains filtered or unexported fields
}
PowManager manages the calculation of proof-of-work in the pow queue. While it is running, when it receives a message that a new item has been added to the pow queue, it goes down the queue and runs the pow for every item in the queue, and then sends the completed item to the server.
func New ¶
func New(pq *store.PowQueue, donePowFunc func(index uint64, user uint32, obj []byte), powFunc func(target uint64, hash []byte) uint64) *PowManager
New creates a new PowManager.
Click to show internal directories.
Click to hide internal directories.