utils

package
v0.0.0-...-c0458dd Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(level string)

InitLogger configures and initializes the logger based on the provided log level

Types

type AWSConfig

type AWSConfig struct {
	Cluster string `yaml:"cluster"`
	FSID    string `yaml:"fsId"`
}

type Config

type Config struct {
	LogLevel string        `yaml:"logLevel"`
	Pulsar   PulsarConfig  `yaml:"pulsar"`
	AWS      AWSConfig     `yaml:"aws"`
	Storage  StorageConfig `yaml:"storage"`
}

Config holds the application's configuration

func LoadConfig

func LoadConfig(configPath string) *Config

LoadConfig loads the application configuration from a file

type PulsarConfig

type PulsarConfig struct {
	URL           string `yaml:"url"`
	TopicProducer string `yaml:"topicProducer"`
	TopicConsumer string `yaml:"topicConsumer"`
	Subscription  string `yaml:"subscription"`
}

type StorageConfig

type StorageConfig struct {
	Size         string `yaml:"size"`
	StorageClass string `yaml:"storageClass"`
	PVCName      string `yaml:"pvcName"`
	Driver       string `yaml:"efs.csi.aws.com"`
}

Jump to

Keyboard shortcuts

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