config

package
v0.0.0-...-c65d4cc Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
}

AppConfig represent the data-struct for configuration

func InitAppConfig

func InitAppConfig() *AppConfig

InitAppConfig initialize the app configuration

func (AppConfig) GetAMQPConnection

func (config AppConfig) GetAMQPConnection() *amqp.Connection

func (AppConfig) GetAMQPStatus

func (config AppConfig) GetAMQPStatus() string

func (AppConfig) GetCacheTTL

func (config AppConfig) GetCacheTTL() time.Duration

func (AppConfig) GetRDBConnection

func (config AppConfig) GetRDBConnection() *gorm.DB

func (AppConfig) GetRDBStatus

func (config AppConfig) GetRDBStatus() string

func (AppConfig) GetRESPConnection

func (config AppConfig) GetRESPConnection() *redis.Client

func (AppConfig) GetRESPStatus

func (config AppConfig) GetRESPStatus(ctx context.Context) string

func (AppConfig) GetServerPort

func (config AppConfig) GetServerPort() string

func (AppConfig) IsDevelopmentMode

func (config AppConfig) IsDevelopmentMode() bool

func (AppConfig) SetupAMQPConnection

func (config AppConfig) SetupAMQPConnection()

func (AppConfig) SetupRDBConnection

func (config AppConfig) SetupRDBConnection()

func (AppConfig) SetupRESPConnection

func (config AppConfig) SetupRESPConnection()

func (AppConfig) SetupServerEnvironment

func (config AppConfig) SetupServerEnvironment()

func (AppConfig) SetupServerLog

func (config AppConfig) SetupServerLog()

Jump to

Keyboard shortcuts

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