net

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

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBoompowWorkGenerateRequest

func MakeBoompowWorkGenerateRequest(ctx context.Context, url string, bpowKey string, hash string, difficultyMultiplier int, blockAward bool) (string, error)

func MakeRequest

func MakeRequest(ctx context.Context, url string, request interface{}, authorization string) ([]byte, error)

Base request

func MakeWorkCancelRequest

func MakeWorkCancelRequest(ctx context.Context, url string, hash string) error

We don't care about the response for work cancel

func MakeWorkGenerateRequest

func MakeWorkGenerateRequest(ctx context.Context, url string, hash string, difficulty string) (*models.WorkGenerateResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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