sbatch

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// HealthCheck sends a simple commands to check if the service is alive.
	HealthCheck(ctx context.Context) error
	// Fetch a job batch content.
	Fetch(
		ctx context.Context,
		hash string,
		customerAddress common.Address,
		jobID [32]byte,
	) (FetchResponse, error)
}

func NewClient

func NewClient(
	endpoint string,
	pk *ecdsa.PrivateKey,
	opts ...grpc.DialOption,
) Client

type FetchResponse

type FetchResponse struct {
	SBatch        string
	GridLoggerURL string
}

Jump to

Keyboard shortcuts

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