Documentation ¶
Index ¶
- type GravitonStore
- func (g *GravitonStore) GetSentTXs() []*SendDetails
- func (g *GravitonStore) GetTXs() []*TXDetails
- func (g *GravitonStore) NewGravDB(poolhost, dbFolder, dbmigratewait string, dbmaxsnapshot uint64)
- func (g *GravitonStore) StoreSentTX(txDetails *SendDetails) error
- func (g *GravitonStore) StoreTX(txDetails *TXDetails) error
- func (g *GravitonStore) SwapGravDB(poolhost, dbFolder string)
- type Messages
- type SendDetails
- type SentMessages
- type TXDetails
- type TreeKV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GravitonStore ¶
type GravitonStore struct { DB *graviton.Store DBFolder string DBPath string DBTree string DBMaxSnapshot uint64 DBMigrateWait time.Duration Writing int // contains filtered or unexported fields }
func (*GravitonStore) GetSentTXs ¶
func (g *GravitonStore) GetSentTXs() []*SendDetails
Gets Sent TX details
func (*GravitonStore) NewGravDB ¶
func (g *GravitonStore) NewGravDB(poolhost, dbFolder, dbmigratewait string, dbmaxsnapshot uint64)
Builds new Graviton DB based on input from main()
func (*GravitonStore) StoreSentTX ¶
func (g *GravitonStore) StoreSentTX(txDetails *SendDetails) error
Stores Sent TX details
func (*GravitonStore) StoreTX ¶
func (g *GravitonStore) StoreTX(txDetails *TXDetails) error
Stores TX details
func (*GravitonStore) SwapGravDB ¶
func (g *GravitonStore) SwapGravDB(poolhost, dbFolder string)
Swaps the store pointer from existing to new after copying latest snapshot to new DB - fast as cursor + disk writes allow [possible other alternatives such as mem store for some of these interwoven, testing needed]
type SendDetails ¶
type SentMessages ¶
type SentMessages struct {
SentTXs []*SendDetails
}
Click to show internal directories.
Click to hide internal directories.