processor

package
v0.0.0-...-c8a797c Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultReplicationFactor = 3
	DefaultPartitions        = 1
	InMemoryStorage          = ":in-memory:"
)
View Source
const (
	MetadataKeyTopicPartition = "topicPartition"
	MetadataKeyTimestamp      = "timestamp"
)
View Source
const (
	EventTypeProjectionResult = "Result"
)

Variables

This section is empty.

Functions

func NewEventFrom

func NewEventFrom(ctx goka.Context, in event.EventData) projections.Event

Types

type Config

type Config struct {
	Brokers     []string
	Replication int
	Partitions  int
	StoragePath string
}

func DefaultConfig

func DefaultConfig(brokers []string) Config

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func BuildProcessor

func BuildProcessor(p *projections.Projection, cfg Config) (*Processor, error)

func (*Processor) Start

func (p *Processor) Start(ctx context.Context) error

func (*Processor) WaitReady

func (p *Processor) WaitReady(ctx context.Context) error

func (*Processor) WaitShutdown

func (p *Processor) WaitShutdown()

Jump to

Keyboard shortcuts

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