config

package
v0.0.0-...-538a820 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 16 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 {
	Postgres           commonConfig.PostgresConfig
	Neo4j              commonConfig.Neo4jConfig
	Logger             logger.Config
	Jaeger             tracing.JaegerConfig
	Cron               cronConfig.Config
	RawDataStoreDBName string `env:"RAW_DATA_STORE_DB_NAME,required" envDefault:"destination"`
}

func Load

func Load() *Config

type Context

type Context struct {
	Schema string
}

type RawDataStoreDB

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

func InitPoolManager

func InitPoolManager(cfg *Config) *RawDataStoreDB

func (*RawDataStoreDB) CreateDBHandler

func (s *RawDataStoreDB) CreateDBHandler(ctx *Context) *gorm.DB

func (*RawDataStoreDB) GetDBHandler

func (s *RawDataStoreDB) GetDBHandler(ctx *Context) *gorm.DB

Jump to

Keyboard shortcuts

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