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
Click to show internal directories.
Click to hide internal directories.