framer

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framer

type Framer struct {
	Command  chan<- *model.Command
	Document chan<- *model.Document
	Event    chan<- *model.Event
}

Framer provides convenience channels for producing messages.

func New

func New(
	ctx context.Context,
	prodConfig *kafka.ProducerConfig,
	topicConfig *TopicConfig,
) (*Framer, error)

New creates a new Framer instance.

type TopicConfig

type TopicConfig struct {
	CommandTopic  string
	DocumentTopic string
	EventTopic    string
}

TopicConfig is the configuration for topics on which respective entities should be produced. In case of Command and Document, this is the default topic if one is not set in Command or Document.

Jump to

Keyboard shortcuts

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