# Functions
InsertBuckets inserts bucket records into table by tx.
InsertDeltaBuckets inserts bucket records into table by tx.
InsertRegistrations inserts registration records into table by tx.
NewArchive creates a new archive of poll.
NewBucketArchive creates a new archive of bucket.
NewBucketTableOperator creates an operator for bucket table.
NewCommittee creates a committee.
NewDeltaBucketTableOperator creates an operator for bucket table.
NewDeltaRecordTableOperator creates a record table storing delta.
No description provided by the author
NewRecordTableOperator creates a new arch of poll.
NewRegistrationTableOperator create an operator for registration table.
NewTimeTableOperator returns an operator to time table.
QueryBuckets returns buckets by ids.
QueryRegistrations get all registrations by ids.
# Constants
ACTIVE stands for an active status.
BucketRecordQuery is query to return buckets by ids.
EthHardForkHeight stands for the height of ethereum hard fork.
INACTIVE stands for an inactive status.
InsertBucketsQueryMySQL is query to insert buckets in MYSQL driver.
InsertBucketsQuerySQLITE is query to insert buckets in SQLITE driver.
InsertRegistrationQueryMySQL is query to insert registrations in MySQL driver.
InsertRegistrationQuerySQLITE is query to insert registrations in SQLITE driver.
MYSQL stands for a mysql driver.
RegistrationQuery is query to get registrations by ids.
SQLITE stands for a Sqlite driver.
STARTING stands for a starting status.
# Structs
No description provided by the author
Config defines the config of the committee.
No description provided by the author
No description provided by the author
TimeTableOperator defines an operator on timetable.
# Interfaces
No description provided by the author
Operator defines an interface of operations on some tables in SQL DB.
PollArchive stores registrations, buckets, and other data.
Record defines a record.
# Type aliases
CalcGravityChainHeight calculates the corresponding gravity chain height for an epoch.
DRIVERTYPE represents the type of sql driver.
InsertDeltaRecordsFunc defines an api to insert records.
InsertRecordsFunc defines an api to insert records.
QueryRecordsFunc defines an api to query records.
STATUS represents the status of committee.