worker

package
v0.0.0-...-9df0bf1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(parentCtx context.Context, rpcUrl string, wsUrl string) (pool.Worker[Request, Result], error)

Types

type JsonRpcRequest

type JsonRpcRequest struct {
	Jsonrpc string        `json name:"jsonrpc"`
	Id      int           `json name:"id"`
	Method  string        `json name:"method"`
	Params  []interface{} `json name:"params"`
}

type Request

type Request struct {
	Tx       []byte
	Simulate bool
}

Request specifies the structure for job requests

type Result

type Result struct {
	Signature sgo.Signature
	Slot      uint64
}

Holds a list of strings representing files.

Jump to

Keyboard shortcuts

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