discovery

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 15 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

This section is empty.

Types

type Discovery

type Discovery struct {
	event.IProcessor
	event.IHandler
	// contains filtered or unexported fields
}

func NewDiscovery

func NewDiscovery() *Discovery

func (*Discovery) Close

func (d *Discovery) Close()

func (*Discovery) Init

func (d *Discovery) Init(conf *config.ETCDConf, eventProcessor event.IProcessor) (err error)

func (*Discovery) Start

func (d *Discovery) 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