rest

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REGISTRY_NAME = "registry-http-service"
	BASE_URL      = "/v1/catalog/service/"
)

Variables

This section is empty.

Functions

func GetHandlerFunc

func GetHandlerFunc(reg registry.Registry, baseURL string) http.HandlerFunc

func HandleServices

func HandleServices(r registry.Registry)

Types

type CatalogResponse

type CatalogResponse struct {
	ID             string
	Node           string
	Address        string
	Datacenter     string
	NodeMeta       map[string]string
	ServiceAddress string
	ServiceID      string
	ServiceName    string
	ServicePort    int
	ServiceMeta    map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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