controllers

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig added in v1.7.2

func ValidateConfig(config *GlobalConfig) error

Types

type EventBusConfig

type EventBusConfig struct {
	NATS      *StanConfig      `json:"nats"`
	JetStream *JetStreamConfig `json:"jetstream"`
}

type GlobalConfig

type GlobalConfig struct {
	EventBus *EventBusConfig `json:"eventBus"`
}

func LoadConfig

func LoadConfig(onErrorReloading func(error)) (*GlobalConfig, error)

func (*GlobalConfig) GetJetStreamVersion

func (g *GlobalConfig) GetJetStreamVersion(version string) (*JetStreamVersion, error)

func (*GlobalConfig) GetSTANVersion

func (g *GlobalConfig) GetSTANVersion(version string) (*StanVersion, error)

type JetStreamConfig

type JetStreamConfig struct {
	Settings     string             `json:"settings"`
	StreamConfig string             `json:"streamConfig"`
	Versions     []JetStreamVersion `json:"versions"`
}

type JetStreamVersion

type JetStreamVersion struct {
	Version              string `json:"version"`
	NatsImage            string `json:"natsImage"`
	ConfigReloaderImage  string `json:"configReloaderImage"`
	MetricsExporterImage string `json:"metricsExporterImage"`
	StartCommand         string `json:"startCommand"`
}

type StanConfig

type StanConfig struct {
	Versions []StanVersion `json:"versions"`
}

type StanVersion

type StanVersion struct {
	Version              string `json:"version"`
	NATSStreamingImage   string `json:"natsStreamingImage"`
	MetricsExporterImage string `json:"metricsExporterImage"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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