config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheConfig

type CacheConfig struct {
	cacheconf.DefaultCacheConfig
	UserTimeToRefresh int `config:"USER_TIME_TO_REFRESH"`
}

CacheConfig - It's the custom struct used to store application configuration over the default struct defined in pkg/cache_config Every fields need to be declared with tag `config:""`

func GetInstance

func GetInstance() *CacheConfig

GetInstance - Return the one struct for application configuration

func (*CacheConfig) GetDefaultCacheConfig

func (c *CacheConfig) GetDefaultCacheConfig() cacheconf.CacheConfigInterface

GetDefaultCacheConfig - Return the instance of CacheConfigInterface

Jump to

Keyboard shortcuts

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