Documentation ¶
Overview ¶
Package appdata provides storage for chestnut.
Package appdata provides storage for chestnut.
Index ¶
- Constants
- type AppDb
- func (appdb *AppDb) AddMetaByTrx(blockId string, groupid string, trxs []*chestnutpb.Trx) error
- func (appdb *AppDb) Close()
- func (appdb *AppDb) GetGroupContentBySenders(groupid string, senders []string, starttrx string, num int, reverse bool) ([]string, error)
- func (appdb *AppDb) GetGroupStatus(groupid, name string) (string, error)
- func (appdb *AppDb) GetSeqId(seqkey string) (uint64, error)
- func (appdb *AppDb) Rebuild(vertag string, chainDb *badger.DB) error
- func (appdb *AppDb) Release() error
- func (appdb *AppDb) SetGroupSeed(seed *chestnutpb.GroupSeed) error
- type AppSync
- func (appsync *AppSync) GetGroups() []*chestnutpb.GroupItem
- func (appsync *AppSync) ParseBlockTrx(groupid string, block *chestnutpb.Block) ([]*chestnutpb.Block, error)
- func (appsync *AppSync) RunSync(groupid string, lastBlockedId string, newBlockId string)
- func (appsync *AppSync) Start(interval int)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDb ¶
type AppDb struct { Db storage.ChestnutStorage DataPath string // contains filtered or unexported fields }
func (*AppDb) AddMetaByTrx ¶
func (*AppDb) GetGroupContentBySenders ¶
func (*AppDb) GetGroupStatus ¶
func (*AppDb) SetGroupSeed ¶
func (appdb *AppDb) SetGroupSeed(seed *chestnutpb.GroupSeed) error
type AppSync ¶
type AppSync struct {
// contains filtered or unexported fields
}
func NewAppSyncAgent ¶
func (*AppSync) GetGroups ¶
func (appsync *AppSync) GetGroups() []*chestnutpb.GroupItem
func (*AppSync) ParseBlockTrx ¶
func (appsync *AppSync) ParseBlockTrx(groupid string, block *chestnutpb.Block) ([]*chestnutpb.Block, error)
Click to show internal directories.
Click to hide internal directories.