Documentation
¶
Overview ¶
Package interfaces provides generic configuration interfaces that can be used across different applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig interface {
// GetVersion returns the application version
GetVersion() string
// GetName returns the application name
GetName() string
// GetEnvironment returns the application environment (e.g., "development", "production")
GetEnvironment() string
}
AppConfig is a generic interface for application configuration
type Config ¶
type Config interface {
// GetApp returns the application configuration
GetApp() AppConfig
// GetDatabase returns the database configuration
GetDatabase() DatabaseConfig
}
Config is a generic interface for application configuration
type DatabaseConfig ¶
type DatabaseConfig interface {
// GetType returns the database type (e.g., "mongodb", "postgres", "sqlite")
GetType() string
// GetConnectionString returns the database connection string
GetConnectionString() string
// GetDatabaseName returns the database name
GetDatabaseName() string
// GetCollectionName returns the collection/table name for a given entity type
GetCollectionName(entityType string) string
}
DatabaseConfig is a generic interface for database configuration
Click to show internal directories.
Click to hide internal directories.