Documentation
¶
Index ¶
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) 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.