Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - type ApplyHandle
 - type Store
 - type StoreImpl
 - func (w *StoreImpl) Append(gid uint32, e entry.Entry) (lsn uint64, err error)
 - func (w *StoreImpl) Close() error
 - func (w *StoreImpl) Load(gid uint32, lsn uint64) (entry.Entry, error)
 - func (w *StoreImpl) RangeCheckpoint(gid uint32, start, end uint64) (ckpEntry entry.Entry, err error)
 - func (w *StoreImpl) Replay(h ApplyHandle) error
 - func (w *StoreImpl) Start()
 
- type StoreInfo
 
Constants ¶
      View Source
      
  
const ( GroupCKP = entry.GTCKp GroupInternal = entry.GTInternal )
Variables ¶
      View Source
      
  
    var ( ErrGroupNotFount = moerr.NewInternalErrorNoCtx("group not found") ErrLsnNotFount = moerr.NewInternalErrorNoCtx("lsn not found") ErrTimeOut = moerr.NewInternalErrorNoCtx("retry timeout") ErrLsnTooSmall = moerr.NewInternalErrorNoCtx("lsn is too small") )
      View Source
      
  
var DefaultMaxBatchSize = 10000
    Functions ¶
This section is empty.
Types ¶
type ApplyHandle ¶
type Store ¶
type Store interface {
	Append(gid uint32, entry entry.Entry) (lsn uint64, err error)
	RangeCheckpoint(gid uint32, start, end uint64) (ckpEntry entry.Entry, err error)
	Load(gid uint32, lsn uint64) (entry.Entry, error)
	GetCurrSeqNum(gid uint32) (lsn uint64)
	GetSynced(gid uint32) (lsn uint64)
	GetPendding(gid uint32) (cnt uint64)
	GetCheckpointed(gid uint32) (lsn uint64)
	Replay(h ApplyHandle) error
	Close() error
}
    func NewStoreWithBatchStoreDriver ¶ added in v0.6.0
func NewStoreWithBatchStoreDriver(dir, name string, cfg *batchstoredriver.StoreCfg) Store
func NewStoreWithLogserviceDriver ¶ added in v0.6.0
func NewStoreWithLogserviceDriver(factory logservicedriver.LogServiceClientFactory) Store
type StoreImpl ¶ added in v0.6.0
type StoreImpl struct {
	*StoreInfo
	sm.ClosedState
	// contains filtered or unexported fields
}
    func (*StoreImpl) RangeCheckpoint ¶ added in v0.6.0
func (*StoreImpl) Replay ¶ added in v0.6.0
func (w *StoreImpl) Replay(h ApplyHandle) error
type StoreInfo ¶ added in v0.6.0
type StoreInfo struct {
	// contains filtered or unexported fields
}
    func (*StoreInfo) GetCheckpointed ¶ added in v0.6.0
func (*StoreInfo) GetCurrSeqNum ¶ added in v0.6.0
func (*StoreInfo) GetPendding ¶ added in v0.6.0
func (*StoreInfo) SetCheckpointed ¶ added in v0.6.0
 Click to show internal directories. 
   Click to hide internal directories.