discover

package
v1.0.1-0...-e52dcc8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discover

type Discover interface {
	GetServerInstance(con context.Context, param *ServerInstancesParam) ([]*server.ServiceInfo, error)
}

Discover register/deregister service Discover impl should control rpc timeout

type Nop

type Nop struct{}

Nop Discover, used for local development/debugging 用于本地开发 不进行注册

func (Nop) GetServerInstance

func (n Nop) GetServerInstance(con context.Context, param *ServerInstancesParam) ([]*server.ServiceInfo, error)

RegisterService ...

type ServerInstancesParam

type ServerInstancesParam struct {
	ServiceName string
	GroupName   string // 默认值DEFAULT_GROUP
	Clusters    []string
}

获取实例的查询参数

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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