extractor

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Factable CommonConfig `group:"Factable" namespace:"factable"`

	runconsumer.BaseConfig
}

Config utilized by Extractor.

type Extractor

type Extractor struct {
	Extractors factable.ExtractFns
	// contains filtered or unexported fields
}

Extractor is a runconsumer.Application which extracts and locally combines relation DeltaEvents from events of an input journal.

func (*Extractor) BeginTxn

func (ext *Extractor) BeginTxn(shard consumer.Shard, store consumer.Store) error

func (*Extractor) ConsumeMessage

func (*Extractor) ConsumeMessage(_ consumer.Shard, store consumer.Store, envelope message.Envelope, _ *message.Publisher) error

func (*Extractor) FinalizeTxn

func (ext *Extractor) FinalizeTxn(shard consumer.Shard, store consumer.Store, publisher *message.Publisher) error

func (*Extractor) FinishedTxn

func (ext *Extractor) FinishedTxn(shard consumer.Shard, store consumer.Store, op client.OpFuture)

func (*Extractor) InitApplication

func (ext *Extractor) InitApplication(args runconsumer.InitArgs) error

InitApplication initializes the Extractor.

func (Extractor) NewConfig

func (Extractor) NewConfig() runconsumer.Config

NewConfig returns a new Spec.

func (*Extractor) NewMessage

func (ext *Extractor) NewMessage(spec *broker.JournalSpec) (message.Message, error)

func (*Extractor) NewStore

func (ext *Extractor) NewStore(shard consumer.Shard, rec *recoverylog.Recorder) (consumer.Store, error)

NewStore constructs a Store for |shard| around the recovered local directory |dir| and initialized Recorder |rec|.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL