validation

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset interface {
	GetBlock(ctx context.Context) (blocks.Block, error)
}

type Checker

type Checker interface {
	GetAssetForValidation(ctx context.Context, randomSeed int64) (Asset, error)
}

type Validation

type Validation struct {
	// contains filtered or unexported fields
}

func NewValidation

func NewValidation(c Checker, device *device.Device) *Validation

NewValidation creates a new Validation instance

func (*Validation) ExecuteValidation

func (v *Validation) ExecuteValidation(ctx context.Context, req *api.ValidateReq) error

ExecuteValidation performs the validation process

func (*Validation) SetFunc

func (v *Validation) SetFunc(fun func() string)

Jump to

Keyboard shortcuts

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