discovery

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package discovery @Title 服务发现 @Description 服务发现 @Author yr 2024/8/29 下午3:42 @Update yr 2024/8/29 下午3:42

Package discovery @Title title @Description desc @Author pc 2024/11/5 @Update pc 2024/11/5

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDiscovery added in v1.0.2

func CreateDiscovery(name string) inf.IDiscovery

func Register added in v1.0.2

func Register(name string, discovery inf.IDiscovery)

Types

type EtcdDiscovery added in v1.0.2

type EtcdDiscovery struct {
	inf.IEventProcessor
	inf.IEventHandler
	// contains filtered or unexported fields
}

func NewDiscovery

func NewDiscovery() *EtcdDiscovery

func (*EtcdDiscovery) Close added in v1.0.2

func (d *EtcdDiscovery) Close()

func (*EtcdDiscovery) Init added in v1.0.2

func (d *EtcdDiscovery) Init(eventProcessor inf.IEventProcessor) (err error)

func (*EtcdDiscovery) Start added in v1.0.2

func (d *EtcdDiscovery) Start()

type LogWriter

type LogWriter struct {
}

LogWriter 日志输出(这个是给etcd的client使用的,可以输出内部的日志,目前先不用)

func (*LogWriter) Sync

func (l *LogWriter) Sync() error

func (*LogWriter) Write

func (l *LogWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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