config

package
v0.0.0-...-c119f7d Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 3 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 {
	ApiPort       string `env:"PORT"`
	ApiServiceUrl string `env:"SERVICE_URL"`
	MaxFileSizeMB int64  `env:"MAX_FILE_SIZE_MB"`

	AWS struct {
		Region string `env:"AWS_S3_REGION,required"`
		Bucket string `env:"AWS_S3_BUCKET,required"`
	}

	PostgresConfig      config.PostgresConfig
	PostgresAsyncConfig config.PostgresAsyncConfig

	Service struct {
		CustomerOsAPI                  string `env:"CUSTOMER_OS_API,required"`
		CustomerOsAPIKey               string `env:"CUSTOMER_OS_API_KEY,required"`
		FileStoreAPIJwtSecret          string `env:"FILE_STORE_API_JWT_SECRET,required"`
		CloudflareImageUploadAccountId string `env:"CLOUDFLARE_IMAGE_UPLOAD_ACCOUNT_ID" envDefault:""`
		CloudflareImageUploadApiKey    string `env:"CLOUDFLARE_IMAGE_UPLOAD_API_KEY" envDefault:""`
		CloudflareImageUploadSignKey   string `env:"CLOUDFLARE_IMAGE_UPLOAD_SIGN_KEY" envDefault:""`
	}
	Logger logger.Config
	Neo4j  config.Neo4jConfig
	Jaeger tracing.JaegerConfig
}

Jump to

Keyboard shortcuts

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