Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPubSub ¶
func InitPubSub(log *logger.Log) *events.EventEmitterPubSub
InitPubSub initializes the pub/sub system
func StartServer ¶
func StartServer(server *ServerRegistry, logger logger.Log)
StartServer starts the HTTP server
Types ¶
type AppConfig ¶
type AppConfig struct {
AppName string
Environment string
StartedAt time.Time
Swagger SwaggerConfig
HTTP ServerConfig
Database DatabaseConfig
Encryption EncryptionConfig
}
AppConfig holds the configuration values
func LoadConfig ¶
LoadConfig initializes and loads the application configuration
type DatabaseConfig ¶
DatabaseConfig holds PostgreSQL connection details
type DatabaseProvider ¶
DatabaseProvider defines the interface for database access
type DatabaseRegistry ¶
DatabaseRegistry holds the database connection instance
func NewDatabase ¶
func NewDatabase(config DatabaseConfig, logger logger.Log) (*DatabaseRegistry, func(), error)
NewDatabase initializes a new PostgreSQL connection using GORM
func (*DatabaseRegistry) GetDB ¶
func (d *DatabaseRegistry) GetDB() *gorm.DB
type EncryptionConfig ¶
type ServerConfig ¶
ServerConfig holds the configuration for the server
Click to show internal directories.
Click to hide internal directories.