Documentation
¶
Index ¶
- Variables
- func CPUProviderID() int
- func SaveMetadata(dir string, v *Metadata) error
- type ComputeProvider
- type Config
- type ConfigMismatchError
- type DiskState
- type InitOpts
- type Initializer
- func (init *Initializer) Completed() (bool, error)
- func (init *Initializer) Initialize() error
- func (init *Initializer) Reset() error
- func (init *Initializer) SessionNumLabelsWritten() uint64
- func (init *Initializer) SessionNumLabelsWrittenChan() <-chan uint64
- func (init *Initializer) SetLogger(logger Logger)
- func (init *Initializer) Started() (bool, error)
- func (init *Initializer) Stop() error
- func (init *Initializer) VerifyStarted() error
- type Logger
- type Metadata
- type Proof
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotInitializing = errors.New("not initializing") ErrAlreadyInitializing = errors.New("already initializing") ErrCannotResetWhileInitializing = errors.New("cannot reset while initializing") ErrStopped = errors.New("gpu-post: stopped") ErrStateMetadataFileMissing = errors.New("metadata file is missing") )
Functions ¶
func CPUProviderID ¶
func CPUProviderID() int
func SaveMetadata ¶
Types ¶
type ComputeProvider ¶
type ComputeProvider = gpu.ComputeProvider
func Providers ¶
func Providers() []ComputeProvider
type ConfigMismatchError ¶
type ConfigMismatchError = shared.ConfigMismatchError
type DiskState ¶
type DiskState struct {
// contains filtered or unexported fields
}
func NewDiskState ¶
func (*DiskState) NumBytesWritten ¶
func (*DiskState) NumLabelsWritten ¶
type Initializer ¶
type Initializer struct {
// contains filtered or unexported fields
}
func NewInitializer ¶
func (*Initializer) Completed ¶
func (init *Initializer) Completed() (bool, error)
func (*Initializer) Initialize ¶
func (init *Initializer) Initialize() error
Initialize is the process in which the prover commits to store some data, by having its storage filled with pseudo-random data with respect to a specific id. This data is the result of a computationally-expensive operation.
func (*Initializer) Reset ¶
func (init *Initializer) Reset() error
func (*Initializer) SessionNumLabelsWritten ¶
func (init *Initializer) SessionNumLabelsWritten() uint64
func (*Initializer) SessionNumLabelsWrittenChan ¶
func (init *Initializer) SessionNumLabelsWrittenChan() <-chan uint64
func (*Initializer) SetLogger ¶
func (init *Initializer) SetLogger(logger Logger)
func (*Initializer) Started ¶
func (init *Initializer) Started() (bool, error)
func (*Initializer) Stop ¶
func (init *Initializer) Stop() error
func (*Initializer) VerifyStarted ¶
func (init *Initializer) VerifyStarted() error
Click to show internal directories.
Click to hide internal directories.