Documentation ¶
Index ¶
- type HeroCacheProvider
- func (l *HeroCacheProvider) Boot(c framework.Container) error
- func (l *HeroCacheProvider) IsDefer() bool
- func (l *HeroCacheProvider) Name() string
- func (l *HeroCacheProvider) Params(c framework.Container) []interface{}
- func (l *HeroCacheProvider) Register(c framework.Container) framework.NewInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeroCacheProvider ¶
type HeroCacheProvider struct { framework.ServiceProvider Driver string // Driver }
HeroCacheProvider 服务提供者
func (*HeroCacheProvider) Boot ¶
func (l *HeroCacheProvider) Boot(c framework.Container) error
Boot 启动的时候注入
func (*HeroCacheProvider) Params ¶
func (l *HeroCacheProvider) Params(c framework.Container) []interface{}
Params 定义要传递给实例化方法的参数
func (*HeroCacheProvider) Register ¶
func (l *HeroCacheProvider) Register(c framework.Container) framework.NewInstance
Register 注册一个服务实例
Click to show internal directories.
Click to hide internal directories.