discovery

package
v0.0.0-...-e4fe77d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MicroDiscovery

type MicroDiscovery struct {
	Host string
}

func NewMicroDiscovery

func NewMicroDiscovery(host string) *MicroDiscovery

func (*MicroDiscovery) QueryRoute

func (md *MicroDiscovery) QueryRoute(name string) ([]string, error)

type Route

type Route struct {
	Addr string `json:"addr"`
	Name string `json:"name"`
}

type RouteResp

type RouteResp struct {
	Code   int32    `json:"code"`
	Msg    string   `json:"msg"`
	Routes []*Route `json:"routes"`
}

Jump to

Keyboard shortcuts

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