Documentation ¶
Index ¶
Constants ¶
View Source
const ( DriverName = "sqlite3" DBName = "./sideChainCache.db" QueryHeightCode = 0 )
View Source
const (
CreateSideChainTxsTable = `` /* 133-byte string literal not displayed */
)
View Source
const MaxSignalQueueLen = 5
Variables ¶
This section is empty.
Functions ¶
func HandleSignal ¶
func HandleSignal(handler func())
Types ¶
type DataStore ¶
type DataStore interface { AddSideChainTx(transactionHash, genesisBlockAddress string) error HasSideChainTx(transactionHash string) (bool, error) ResetDataStore() error }
var (
DbCache DataStore
)
func OpenDataStore ¶
type DataStoreImpl ¶
func (*DataStoreImpl) AddSideChainTx ¶
func (store *DataStoreImpl) AddSideChainTx(transactionHash, genesisBlockAddress string) error
func (*DataStoreImpl) HasSideChainTx ¶
func (store *DataStoreImpl) HasSideChainTx(transactionHash string) (bool, error)
func (*DataStoreImpl) ResetDataStore ¶
func (store *DataStoreImpl) ResetDataStore() error
Click to show internal directories.
Click to hide internal directories.