config

package
v0.0.0-...-683a4be Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config is where we parse configurations from configuration files (.ini) into configuration objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(path, env string) error

InitConfig initializes all configuration (database, mq, api calls, redis, etc.)

Types

type RedisConfig

type RedisConfig struct {
	Address   string
	MaxActive int
	MaxIdle   int
	Timeout   int
}

RedisConfig is the basic configuration for a redis connection

type RedisConfigWrap

type RedisConfigWrap struct {
	RedisElasthink RedisConfig
}

RedisConfigWrap is A wrapper for reading all redis connections (can be multiple connections).

func GetRedisConfig

func GetRedisConfig() *RedisConfigWrap

GetRedisConfig gets the redis config that has been initializad

Jump to

Keyboard shortcuts

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