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 }
获取实例的查询参数
Click to show internal directories.
Click to hide internal directories.