naming

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry interface {
	// Register 服务注册
	// serviceName string 服务名称
	Register(serviceName string, meta metadata.ServiceRegisterMetadata) error

	// Unregister 服务注销
	// serviceName string 服务名称
	Unregister(serviceName string) error

	// OnStatusChange 注册状态变更回调
	OnStatusChange(callback StatusChangeCallback)

	// Close 关闭服务注册
	Close() error
}

Registry 服务注册

type StatusChangeCallback added in v0.2.6

type StatusChangeCallback func(newMeta metadata.ServiceMetadata)

StatusChangeCallback is a callback function invoked when the service status is changed externally.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL