instance

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func New

func New(ginInstance *gin.Engine, gormInstance *gorm.DB, redigoPool *redis.Pool, config *cfg.Config) *Instance

func (*Instance) GetConfig

func (instance *Instance) GetConfig() *cfg.Config

func (*Instance) GetDB

func (instance *Instance) GetDB() *gorm.DB

func (*Instance) GetGin

func (instance *Instance) GetGin() *gin.Engine

func (*Instance) GetRedis

func (instance *Instance) GetRedis() *redis.Pool

Jump to

Keyboard shortcuts

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