Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrServiceInstanceNameEmpty = errors.New("kratos/nacos: ServiceInstance.Name can not be empty")
Functions ¶
This section is empty.
Types ¶
type NacosRegistry ¶
type NacosRegistry struct {
// contains filtered or unexported fields
}
NacosRegistry is nacos registry.
func NewDefaultNacosRegistry ¶
func NewDefaultNacosRegistry(reg *regOps.RegistryOptions, opts ...Option) *NacosRegistry
func NewNacosRegistry ¶
func NewNacosRegistry(cli naming_client.INamingClient, opts ...Option) *NacosRegistry
NewNacosRegistry new a nacos registry.
func (*NacosRegistry) Deregister ¶
func (r *NacosRegistry) Deregister(_ context.Context, service *registry.ServiceInstance) error
Deregister the registration.
func (*NacosRegistry) Register ¶
func (r *NacosRegistry) Register(_ context.Context, si *registry.ServiceInstance) error
Register the registration.
type Option ¶
type Option func(o *options)
Option is nacos option.
func WithDefaultKind ¶
WithDefaultKind with default kind option.
Click to show internal directories.
Click to hide internal directories.