interfaces

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

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