registry

package
v0.0.0-...-7553a0f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegisterClient

type RegisterClient interface {
	PublishConfig(key string, group string, value string) error
	GetConfig(key string, group string) (string, error)
	Subscribe(key string, group string, listener common.Listener)
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func GetRegisterClient

func GetRegisterClient() *Registry

func (*Registry) GetConfig

func (r *Registry) GetConfig(key string, group string) (string, error)

func (*Registry) PublishConfig

func (r *Registry) PublishConfig(key string, group string, value string) error

func (*Registry) Subscribe

func (r *Registry) Subscribe(key string, group string, listener common.Listener)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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