app

package
v0.0.0-...-2140920 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package app configures and runs application.

Index

Constants

View Source
const (
	TaskAggregateType string = "Task"
)

Variables

This section is empty.

Functions

func GetKafkaAggregateTypeTopic

func GetKafkaAggregateTypeTopic(cfg *KafkaEventsBusConfig, aggregateType string) kafka.TopicConfig

func GetTopicName

func GetTopicName(eventStorePrefix string, aggregateType string) string

func Run

func Run(cfg *config.Config)

Run creates objects via constructors.

Types

type KafkaEventsBusConfig

type KafkaEventsBusConfig struct {
	Topic             string `mapstructure:"topic" validate:"required"`
	TopicPrefix       string `mapstructure:"topicPrefix" validate:"required"`
	Partitions        int    `mapstructure:"partitions" validate:"required,gte=0"`
	ReplicationFactor int    `mapstructure:"replicationFactor" validate:"required,gte=0"`
	Headers           []kafka.Header
}

KafkaEventsBusConfig kafka eventbus config.

Jump to

Keyboard shortcuts

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