config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel       string     `cli:"log-level"`
	Tables         []string   `cli:"tables"`
	PgConfig       PgConfig   `cli-prefix:"pg-"`
	NatsConfig     NatsConfig `cli-prefix:"nats-"`
	PrometheusPort int        `cli:"prometheus-port"`
}

type NatsConfig

type NatsConfig struct {
	Uri       string          `cli:"uri"`
	Timeout   time.Duration   `cli:"timeout"`
	NameSpace string          `cli:"namespace"`
	Retention RetentionConfig `cli-prefix:"retention-"`
	Replicas  int             `cli:"replicas"`
}

type PgConfig

type PgConfig struct {
	Uri             string        `cli:"uri"`
	PublicationName string        `cli:"publication-name"`
	PublicationSlot string        `cli:"publication-slot"`
	MessageTimeout  time.Duration `cli:"message-timeout"`
}

type RetentionConfig

type RetentionConfig struct {
	Policy   jetstream.RetentionPolicy `cli:"policy"`
	MaxAge   time.Duration             `cli:"max-age"`
	MaxBytes int64                     `cli:"max-bytes"`
	MaxMsgs  int64                     `cli:"max-msgs"`
}

Jump to

Keyboard shortcuts

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