# Functions
APIBaseFromEnv initialises APIBase Object passing .env.dev file to APIBaseFromEnvFile which will have configuration for development mode.
APIBaseFromEnvFile expects a filepath to env file which has configurations It loads .env file, skips it if not found, initialises a db connection & logger depending on the EnvMode and returns a APIBase Object.
Returns the base path where catalog is to be cloned and stored.
No description provided by the author
DBWithLogger returns gorm db object initialised with logger.
Environment return EnvMode the Api server would be running in.
FromEnv will initialise APIConfig Object.
FromEnvFile expects a file name containing configurations.
New creates a new zap logger.
# Constants
Types of EnvMode.
Types of EnvMode.
DBDialect defines dialect for db connection.
Types of EnvMode.
Types of EnvMode.
Types of EnvMode.
Types of EnvMode.
# Structs
APIBase defines the base configuration every service requires.
APIConfig defines struct on top of APIBase with GitHub Oauth, GHEConfig & JWT Configurations.
BaseService defines configuraition for creating logger and db object with http request id.
No description provided by the author
No description provided by the author
No description provided by the author
Database Object defines db configuration fields.
No description provided by the author
JWTConfig defines configuration requires to create token.
No description provided by the author
No description provided by the author
# Interfaces
BaseConfig defines methods on APIBase.
Config defines methods on APIConfig includes BaseConfig.
Service defines methods on BaseService.
# Type aliases
EnvMode defines the mode the server is running in.