types

package
v0.0.0-...-70f40f3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acknowledgement

type Acknowledgement struct {
	Status int
	Offset int
	Event  *kafka.Message
}

type CommitStore

type CommitStore struct {
	Value   bool
	Message *kafka.Message
}

type DeadLetter

type DeadLetter struct {
	UUID      string
	TIMESTAMP string
	Topic     string
	Partition int
	Offset    int
	Key       string
	String    string
	Headers   string
}

type SafeCommitHash

type SafeCommitHash struct {
	Mutex sync.Mutex
	// contains filtered or unexported fields
}

func MakeSafeCommitHash

func MakeSafeCommitHash(hash map[int]CommitStore) *SafeCommitHash

func (*SafeCommitHash) Delete

func (s *SafeCommitHash) Delete(key int)

potential optimization: write a specific delete function (the for loop in commitCalculator.Delete) that only locks/unlocks once

func (*SafeCommitHash) GetOffsets

func (s *SafeCommitHash) GetOffsets() []int

func (*SafeCommitHash) Read

func (s *SafeCommitHash) Read(key int) (CommitStore, bool)

func (*SafeCommitHash) Write

func (s *SafeCommitHash) Write(key int, value CommitStore)

type TriageConfig

type TriageConfig struct {
	TopicName           string
	DeadLetterTableName string
	AuthenticationToken string
	KafkaConfigMap      kafka.ConfigMap
}

Jump to

Keyboard shortcuts

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