Documentation ¶
Index ¶
- Variables
- func Deregister(ctx context.Context, service *registry.ServiceInstance) error
- func GetService(ctx context.Context, serviceName string) ([]*registry.ServiceInstance, error)
- func Register(ctx context.Context, service *registry.ServiceInstance) error
- func Watch(ctx context.Context, serviceName string) (registry.Watcher, error)
- type RegisterDiscover
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotInitRegisterInstance = errors.New("registry instance not assigned") ErrUnknownRegisterInfo = errors.New("register info unknown") )
Functions ¶
func Deregister ¶
func Deregister(ctx context.Context, service *registry.ServiceInstance) error
Deregister the registration.
func GetService ¶
GetService return the service instances in memory according to the service name.
Types ¶
type RegisterDiscover ¶
func GetRegisterDiscover ¶
func GetRegisterDiscover() (RegisterDiscover, error)
func NewRegistry ¶
func NewRegistry(regCfg *registryv1.Registry) (RegisterDiscover, error)
Click to show internal directories.
Click to hide internal directories.