config

package
v0.0.0-...-0e42b2a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloudinary

type Cloudinary struct {
	CLOUD_NAME string
	API_KEY    string
	API_SECRET string
}

type Config

type Config struct {
	Http       HttpServer
	DB         DBServer
	RDB        RDBServer
	Email      EmailSender
	KAFKA      KafkaConfig
	Cloudinary Cloudinary
	JWT        JWTConfig
	OTHER      Other
}

func Configuration

func Configuration() Config

type DBServer

type DBServer struct {
	DB_DRIVER        string
	DB_USER          string
	DB_PASS          string
	DB_SERVER        string
	DB_PORT          int
	DB_NAME          string
	DB_MAX_IDLE_CON  int
	DB_MAX_OPEN_CON  int
	DB_MAX_LIFE_TIME int
}

type EmailSender

type EmailSender struct {
	EMAIL_HOST     string
	EMAIL_PORT     int
	EMAIL_NAME     string
	EMAIL_EMAIL    string
	EMAIL_PASSWORD string
}

type HttpServer

type HttpServer struct {
	Server string
	Port   int
	URL    string
}

type JWTConfig

type JWTConfig struct {
	SecretKey string
	Expired   int
}

type KafkaConfig

type KafkaConfig struct {
	KAFKA_SERVER         string
	KAFKA_PORT           int
	KAFKA_CONSUMER_GROUP string
	TOPIC_EMAIL_VERIFIED string
	TOPIC_PASS_FORGOT    string
}

type Other

type Other struct {
	AlQuranAPI string
}

type RDBServer

type RDBServer struct {
	RDB_ADDRESS    string
	RDB_PORT       int
	RDB_USER       string
	RDB_PASS       string
	RDB_DB_DEFAULT int
}

Jump to

Keyboard shortcuts

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