loader

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainCache *cache.Cache

MainCache to stores database records

Functions

func ConnectDB

func ConnectDB() *sql.DB

ConnectDB initializes a db connection based on settings file.

func GormConnectDB

func GormConnectDB() *gorm.DB

GormConnectDB initializes a GORM DB ORM connection

func ReadFromCache

func ReadFromCache(key string) (interface{}, bool)

ReadFromCache reads from cachestore using the key

func WriteToCache

func WriteToCache(key string, obj interface{}, expiration time.Duration)

WriteToCache writes to cachestore (file) based on key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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