visor

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0, MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ProcessingStatusOK    = "OK"
	ProcessingStatusInfo  = "INFO"  // Processing was successful but the task reported information in the StatusInformation column
	ProcessingStatusError = "ERROR" // one or more errors were encountered, data may be incomplete
	ProcessingStatusSkip  = "SKIP"  // no processing was attempted, a reason may be given in the StatusInformation column
)
View Source
const (
	// ProcessingStatusInformationNullRound is set byt the consensus task to indicate a null round
	ProcessingStatusInformationNullRound = "NULL_ROUND" // used by consensus task to indicate a null round

)

Variables

This section is empty.

Functions

This section is empty.

Types

type GapReport

type GapReport struct {
	Height int64  `pg:",pk,use_zero"`
	Task   string `pg:",pk"`
	Status string `pg:",pk,notnull"`

	// Reporter is the name of the instance that is reporting the result
	Reporter   string    `pg:",notnull"`
	ReportedAt time.Time `pg:",use_zero"`
	// contains filtered or unexported fields
}

func (*GapReport) Persist

func (p *GapReport) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type GapReportList

type GapReportList []*GapReport

func (GapReportList) Persist

func (pl GapReportList) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type ProcessingReport

type ProcessingReport struct {
	Height    int64  `pg:",pk,use_zero"`
	StateRoot string `pg:",pk,notnull"`

	// Reporter is the name of the instance that is reporting the result
	Reporter string `pg:",pk,notnull"`

	// Task is the name of the sub task that generated the report
	Task string `pg:",pk,notnull"`

	StartedAt   time.Time `pg:",pk,use_zero"`
	CompletedAt time.Time `pg:",use_zero"`

	Status            string `pg:",notnull"`
	StatusInformation string
	ErrorsDetected    interface{} `pg:",type:jsonb"`
	// contains filtered or unexported fields
}

func (*ProcessingReport) Persist

func (p *ProcessingReport) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type ProcessingReportList

type ProcessingReportList []*ProcessingReport

func (ProcessingReportList) Persist

Jump to

Keyboard shortcuts

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