Documentation ¶
Index ¶
- type Manager
- func (m *Manager) AddSource(key string, object interface{}) error
- func (m *Manager) DeleteSource(key string, dir bool) error
- func (m *Manager) GetDomainKey(tenantID, serviceID, domainID string) string
- func (m *Manager) GetDomainList(key string) ([]interface{}, error)
- func (m *Manager) GetSource(key string, object interface{}) error
- func (m *Manager) GetSourceList(key, sourceType string) ([]interface{}, error)
- func (m *Manager) GetV3Client() *clientv3.Client
- func (m *Manager) New(sourceName string) (c interface{}, err error)
- func (m *Manager) Register(sourceName string, source interface{})
- func (m *Manager) UpdateSource(key string, object interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) DeleteSource ¶
DeleteSource 删除资源
func (*Manager) GetDomainKey ¶
GetDomainKey get domain key
func (*Manager) GetDomainList ¶
GetDomainList 获取资源列表
func (*Manager) GetSourceList ¶
GetSourceList 获取资源列表 使用反射方式创建对象 性能远低于直接创建对象
func (*Manager) UpdateSource ¶
UpdateSource 更新资源
Click to show internal directories.
Click to hide internal directories.