appcontext

package
v0.0.0-...-a54da22 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

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

AppContext the app context struct

func NewAppContext

func NewAppContext(config config.Provider) *AppContext

NewAppContext initiate appcontext object

func (*AppContext) GetCachedPool

func (a *AppContext) GetCachedPool() (pool *redis.Pool, err error)

func (*AppContext) GetDBInstance

func (a *AppContext) GetDBInstance() (*gorm.DB, error)

GetDBInstance getting gorp instance, param: dbType

Jump to

Keyboard shortcuts

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