Documentation
¶
Index ¶
- func ToProviderInstance(nacosInstances []model.Instance) []provider.Instancer
- type File
- type NacosProvider
- type NacosServiceDiscovery
- func (d *NacosServiceDiscovery) Close() error
- func (d *NacosServiceDiscovery) GetInstances(ctx context.Context, options provider.GetInstanceOptions) ([]provider.Instancer, error)
- func (d *NacosServiceDiscovery) Watch(ctx context.Context, options provider.GetInstanceOptions) (<-chan []provider.Instancer, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NacosProvider ¶
type NacosProvider struct {
OnChanged provider.ChangeFunc
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(options Options) (*NacosProvider, error)
func (*NacosProvider) ConfigOpen ¶
func (p *NacosProvider) ConfigOpen() ([]*File, error)
func (*NacosProvider) SetOnChanged ¶
func (p *NacosProvider) SetOnChanged(changeFunc provider.ChangeFunc)
func (*NacosProvider) Watch ¶
func (p *NacosProvider) Watch() error
type NacosServiceDiscovery ¶ added in v0.4.0
type NacosServiceDiscovery struct {
// contains filtered or unexported fields
}
func NewNacosServiceDiscovery ¶ added in v0.4.0
func NewNacosServiceDiscovery(options Options) (*NacosServiceDiscovery, error)
func (*NacosServiceDiscovery) Close ¶ added in v0.9.0
func (d *NacosServiceDiscovery) Close() error
func (*NacosServiceDiscovery) GetInstances ¶ added in v0.4.0
func (d *NacosServiceDiscovery) GetInstances( ctx context.Context, options provider.GetInstanceOptions, ) ([]provider.Instancer, error)
func (*NacosServiceDiscovery) Watch ¶ added in v0.4.0
func (d *NacosServiceDiscovery) Watch( ctx context.Context, options provider.GetInstanceOptions, ) (<-chan []provider.Instancer, error)
Click to show internal directories.
Click to hide internal directories.