log

package
v0.0.0-...-af0f53c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaCommandLog

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

KafkaCommandLog is a struct that provides a mechanism to log saga commands sent through Kafka.

func NewKafkaCommandLog

func NewKafkaCommandLog(writer *kafka.Writer, reader *kafka.Reader) *KafkaCommandLog

func (*KafkaCommandLog) Commit

func (k *KafkaCommandLog) Commit(ctx context.Context, c command.Command) error

Commit commits the specified command to Kafka.

func (*KafkaCommandLog) Read

Read reads the next command from Kafka.

func (*KafkaCommandLog) Write

Write writes the specified command to Kafka topic with partitioning by saga id.

Jump to

Keyboard shortcuts

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