attest

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryAttestedChallengeInterval = 10 * time.Second // query last attested challenge id
	MaxQueryCount                  = 3000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestMonitor

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

func NewAttestMonitor

func NewAttestMonitor(executor *executor.Executor, dataProvider DataProvider, metricService *metrics.MetricService) *AttestMonitor

func (*AttestMonitor) UpdateAttestedChallengeIdLoop

func (a *AttestMonitor) UpdateAttestedChallengeIdLoop()

UpdateAttestedChallengeIdLoop polls the blockchain for latest attested challengeIds and updates their status

type DataHandler

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

func NewDataHandler

func NewDataHandler(daoManager *dao.DaoManager) *DataHandler

func (*DataHandler) GetEventByChallengeId

func (h *DataHandler) GetEventByChallengeId(challengeId uint64) (*model.Event, error)

func (*DataHandler) UpdateEventStatus

func (h *DataHandler) UpdateEventStatus(challengeId uint64, status model.EventStatus) error

type DataProvider

type DataProvider interface {
	GetEventByChallengeId(challengeId uint64) (*model.Event, error)
	UpdateEventStatus(challengeId uint64, status model.EventStatus) error
}

Jump to

Keyboard shortcuts

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