register

package
v0.0.0-...-21ca16f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEtcdConfig

func GetEtcdConfig(host string, port int64, prefix string) (config.Config, error)

Types

type NacosConfig

type NacosConfig struct {
	DataID string
	Group  string
}

type NacosSouce

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

type NacosSubject

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

func (*NacosSubject) Attach

func (n *NacosSubject) Attach(observer Observer)

func (*NacosSubject) Detach

func (n *NacosSubject) Detach(observer Observer)

func (*NacosSubject) Notify

func (n *NacosSubject) Notify()

func (*NacosSubject) SourceWatch

func (n *NacosSubject) SourceWatch(ns *NacosSouce)

type Observer

type Observer interface {
	Name() string
	Update(*source.ChangeSet)
}

type Subject

type Subject interface {
	Attach(Observer)
	Detach(Observer)
	Notify()
}

func NewNacosConfig

func NewNacosConfig(host string, port int64, nacons ...NacosConfig) Subject

Jump to

Keyboard shortcuts

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