Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category int
Category is an enum type for representing the bookkeeping of different type
const ( // PvtdataExpiry represents the bookkeeping related to expiry of pvtdata because of BTL policy PvtdataExpiry Category = iota // MetadataPresenceIndicator maintains the bookkeeping about whether metadata is ever set for a namespace MetadataPresenceIndicator // SnapshotRequest maintains the information for snapshot requests SnapshotRequest )
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides db handle to different bookkeepers
func NewProvider ¶
NewProvider instantiates a new provider
func (*Provider) Close ¶
func (p *Provider) Close()
Close implements the function in the interface 'BookKeeperProvider'
func (*Provider) GetDBHandle ¶
func (p *Provider) GetDBHandle(ledgerID string, cat Category) *leveldbhelper.DBHandle
GetDBHandle implements the function in the interface 'BookkeeperProvider'
Click to show internal directories.
Click to hide internal directories.