worker

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

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Type MessageType
	Host string

	Match         MessageMatch
	CounterUpdate MessageCounterUpdate
}

type MessageCounterUpdate

type MessageCounterUpdate struct {
	Num uint64
}

type MessageMatch

type MessageMatch struct {
	PrivateKey vanitykeygen.PrivateKeyBytes
}

type MessageType

type MessageType int
const (
	MessageTypeNull MessageType = iota
	MessageTypeMatch
	MessageTypeCounterUpdate
)

type Worker

type Worker struct {
	WorkerID int

	Config *vanitykeygen.Config

	Messages chan<- Message
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(wid int, config *vanitykeygen.Config, messages chan<- Message) *Worker

func (*Worker) Run

func (w *Worker) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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