discover

package
v0.0.0-...-ae88a46 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package discover

@author: xwc1125

Package discover

@author: xwc1125

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingName = errors.New("missing name")
)

Functions

func RegisterDiscover

func RegisterDiscover(discover Discover) error

Types

type Discover

type Discover interface {
	// Name 插件名称
	Name() string
	// Version 版本信息
	Version() string

	// GetClient 解析服务发现配置,并返回client
	// 如果无法解析,那么返回错误
	GetClient(args map[string]string) (client *fasthttp.HostClient, err error)
}

Discover 服务发现

func FindDiscover

func FindDiscover(name string) Discover

Directories

Path Synopsis
Package polaris
Package polaris

Jump to

Keyboard shortcuts

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