config

package
v0.0.0-...-5b18d72 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(cfg *Config) (neo4j.DriverWithContext, error)

Types

type Config

type Config struct {
	Logger     logger.Config
	CustomerOS struct {
		CustomerOsAPI    string `env:"CUSTOMER_OS_API,required"`
		CustomerOsAPIKey string `env:"CUSTOMER_OS_API_KEY,required"`
	}
	Service struct {
		Port               string `env:"PORT,required"`
		PublicPath         string `env:"USER_ADMIN_API_PUBLIC_PATH,required"`
		CorsUrl            string `env:"CORS_URL,required"`
		ProviderTenantName string `env:"PROVIDER_TENANT_NAME,required"`
		ProviderUsername   string `env:"PROVIDER_USERNAME,required"`
	}
	GoogleOAuth config.GoogleOAuthConfig
	Slack       struct {
		ClientId                         string `env:"SLACK_CLIENT_ID,required"`
		ClientSecret                     string `env:"SLACK_CLIENT_SECRET,required"`
		NotifyNewTenantRegisteredWebhook string `env:"SLACK_NOTIFY_NEW_TENANT_REGISTERED_WEBHOOK,required"`
	}
	GrpcClientConfig config.GrpcClientConfig
	Postgres         config.PostgresConfig
	Neo4j            config.Neo4jConfig
	Jaeger           tracing.JaegerConfig
	RabbitMQConfig   config.RabbitMQConfig
	OpenSRSConfig    config.OpenSRSConfig
	PostmarkConfig   config.PostmarkConfig
}

type StorageDB

type StorageDB struct {
	SqlDB  *sql.DB
	GormDB *gorm.DB
}

func NewDBConn

func NewDBConn(cfg *Config) (*StorageDB, error)

Jump to

Keyboard shortcuts

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