deps

package
v0.0.0-...-e50a543 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLog

func ConfigureLog() bool

ConfigureLog configures the logger Returns true if it's in developer env, otherwise prod

func LoadEnv

func LoadEnv(file ...string)

LoadEnv loads all env variables from .env file relative to the source of execution. If no .env file is provided, .env will be loaded from deps.go directory.

func Postgres

func Postgres() *gorm.DB

Postgres creates the new postgres connection

func Redis

func Redis() *redis.Client

Redis returns a redis connection

func Router

func Router() *gin.Engine

Router creates the default gin router

Types

This section is empty.

Jump to

Keyboard shortcuts

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