Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAndInsertBlockData ¶
Types ¶
type BlockSynchronizer ¶
type BlockSynchronizer struct {
// contains filtered or unexported fields
}
BlockSynchronizer provides the ability to retrieve block data on an interval.
func New ¶
func New(log *zap.SugaredLogger, interval time.Duration, algodClient *algod.Client, cfg couchdb.Config, hub *websocket.Hub, dbName string) (*BlockSynchronizer, error)
New creates a BlockSynchronizer for retrieving block data and saving it to CouchDB.
func (*BlockSynchronizer) Stop ¶
func (p *BlockSynchronizer) Stop()
Stop is used to shutdown the goroutine for syncing block data.
Click to show internal directories.
Click to hide internal directories.