Documentation ¶
Index ¶
- type Handler
- func (h *Handler) GetCacher(cName string) (*cacher.Cacher, error)
- func (h *Handler) GetCachers() map[string]*cacher.Cacher
- func (h *Handler) GetCasbinEnforcer(ceName string) (*casbin.Enforcer, error)
- func (h *Handler) GetConfig() (*config.Config, error)
- func (h *Handler) GetGormDB(conName string) (*gorm.DB, error)
- func (h *Handler) GetGormDBs() map[string]*gorm.DB
- func (h *Handler) SetCacher(cName string, c *cacher.Cacher)
- func (h *Handler) SetCasbinEnforcer(ceName string, ce *casbin.Enforcer)
- func (h *Handler) SetConfig(config *config.Config)
- func (h *Handler) SetGormDB(conName string, dbCon *gorm.DB)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represent Handler
func (*Handler) GetCachers ¶ added in v0.2.1
GetCachers get Cachers
func (*Handler) GetCasbinEnforcer ¶ added in v0.2.0
GetCasbinEnforcer get CasbinEnforcer
func (*Handler) GetGormDBs ¶ added in v0.2.0
GetGormDBs get Gorm Databases
func (*Handler) SetCasbinEnforcer ¶ added in v0.2.0
SetCasbinEnforcer set CasbinEnforcer
Click to show internal directories.
Click to hide internal directories.