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 ¶
Click to show internal directories.
Click to hide internal directories.