Documentation ¶
Index ¶
- func Delete(name string)
- func Exists(name string) bool
- func Get(name string, conf ConfigMap) any
- func GetOnce(name string, conf ConfigMap) any
- func With(name string, fn RegisterFunc)
- type ConfigMap
- type Manager
- func (this *Manager) GetPrefix(prefix string) string
- func (this *Manager) GetRegister(name string, conf ManagerConfigMap, once ...bool) any
- func (this *Manager) Register(name string, f ManagerRegisterFunc)
- func (this *Manager) RegisterMany(drivers map[string]ManagerRegisterFunc)
- func (this *Manager) WithPrefix(prefix string) *Manager
- type ManagerConfigMap
- type ManagerRegisterFunc
- type Register
- type RegisterFunc
- type RegistersMap
- type UsedMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func With ¶ added in v1.0.1002
func With(name string, fn RegisterFunc)
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
*
- 注册管理器 *
- @create 2021-9-6
- @author deatil
func (*Manager) GetRegister ¶
func (this *Manager) GetRegister(name string, conf ManagerConfigMap, once ...bool) any
获取已注册驱动
func (*Manager) RegisterMany ¶
func (this *Manager) RegisterMany(drivers map[string]ManagerRegisterFunc)
批量注册驱动
Click to show internal directories.
Click to hide internal directories.