Documentation ¶
Index ¶
- func PreprocessingFunc(blockFilter func(blk *bstream.Block) error) bstream.PreprocessFunc
- type FacetShardDetail
- type FacetShardSummary
- type Injector
- func (i *Injector) DeleteCheckpoint(ctx context.Context, shard byte) error
- func (i *Injector) FacetShardSummary(ctx context.Context, facet accounthist.Facet, shardNum byte) (*FacetShardDetail, error)
- func (i *Injector) FacetShardsSummary(ctx context.Context, key accounthist.Facet) ([]*FacetShardSummary, error)
- func (i *Injector) ForceFlush(ctx context.Context) error
- func (i *Injector) GetShardCheckpoint(ctx context.Context) (*pbaccounthist.ShardCheckpoint, error)
- func (i *Injector) Launch()
- func (i *Injector) ProcessBlock(blk *bstream.Block, obj interface{}) error
- func (i *Injector) SetFacetFactory(facetFactory accounthist.FacetFactory)
- func (i *Injector) SetupMetrics(serviceName string)
- func (i *Injector) SetupSource(ignoreCheckpointOnLaunch bool) error
- func (i *Injector) ShardCheckpointAnalysis(ctx context.Context, checkpointPrefix byte) (out []*ShardDetail, err error)
- func (i *Injector) Shutdown(err error)
- func (i *Injector) UpdateSeqData(key accounthist.Facet, seqData accounthist.SequenceData)
- func (i *Injector) WriteAction(ctx context.Context, key accounthist.Facet, ...) error
- type RWCache
- type ShardDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreprocessingFunc ¶
func PreprocessingFunc(blockFilter func(blk *bstream.Block) error) bstream.PreprocessFunc
Types ¶
type FacetShardDetail ¶
type FacetShardDetail struct { ShardNum byte LatestSeqData accounthist.SequenceData RowKeyCount uint64 }
type FacetShardSummary ¶
type FacetShardSummary struct { ShardNum byte SeqData accounthist.SequenceData }
type Injector ¶
type Injector struct { *shutter.Shutter ShardNum byte // 0 is live BlockFilter func(blk *bstream.Block) error MaxEntries uint64 KvStore store.KVStore // contains filtered or unexported fields }
func NewInjector ¶
func (*Injector) DeleteCheckpoint ¶
func (*Injector) FacetShardSummary ¶
func (i *Injector) FacetShardSummary(ctx context.Context, facet accounthist.Facet, shardNum byte) (*FacetShardDetail, error)
func (*Injector) FacetShardsSummary ¶
func (i *Injector) FacetShardsSummary(ctx context.Context, key accounthist.Facet) ([]*FacetShardSummary, error)
func (*Injector) GetShardCheckpoint ¶
func (i *Injector) GetShardCheckpoint(ctx context.Context) (*pbaccounthist.ShardCheckpoint, error)
func (*Injector) ProcessBlock ¶
func (*Injector) SetFacetFactory ¶
func (i *Injector) SetFacetFactory(facetFactory accounthist.FacetFactory)
func (*Injector) SetupMetrics ¶
func (*Injector) SetupSource ¶
func (*Injector) ShardCheckpointAnalysis ¶
func (*Injector) UpdateSeqData ¶
func (i *Injector) UpdateSeqData(key accounthist.Facet, seqData accounthist.SequenceData)
func (*Injector) WriteAction ¶
func (i *Injector) WriteAction(ctx context.Context, key accounthist.Facet, acctSeqData accounthist.SequenceData, rawTrace []byte) error
type ShardDetail ¶
type ShardDetail struct { ShardNum byte Checkpoint *pbaccounthist.ShardCheckpoint }
Click to show internal directories.
Click to hide internal directories.