structures

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDoesNotExists      = errors.New("does not exists")
	ErrNoWorkersAvailable = errors.New("no workers available")
)

Functions

This section is empty.

Types

type LatestRecord

type LatestRecord struct {
	Hash   string    `json:"hash"`
	Height uint64    `json:"height"`
	Time   time.Time `json:"time"`
	From   string    `json:"from"`
	Nonce  []byte    `json:"nonce"`
}

type RunConfig

type RunConfig struct {
	ID uuid.UUID `json:"id"`

	RunID   uuid.UUID `json:"run_id"`
	Network string    `json:"network"`
	ChainID string    `json:"chain_id"`
	Version string    `json:"version"`

	Duration time.Duration `json:"duration"`
	Kind     string        `json:"kind"`
}

type RunConfigParams

type RunConfigParams struct {
	Network  string `json:"network"`
	ChainID  string `json:"chain_id"`
	Duration string `json:"duration"`
	Kind     string `json:"kind"`
}

type RunError

type RunError struct {
	Contents      error
	Unrecoverable bool
}

func (*RunError) Error

func (re *RunError) Error() string

func (*RunError) IsRecoverable

func (re *RunError) IsRecoverable() bool

Jump to

Keyboard shortcuts

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