cloud

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryClient

type DiscoveryClient interface {
	Description() string
	ServiceInstances(serviceId string) []ServiceInstance
	Services() []string
}

type ServiceInstance

type ServiceInstance interface {
	InstanceId() string
	ServiceId() string
	URL() url.URL
	Scheme() string
	Host() string
	Port() int
	IsSecure() bool
	Metadata() map[string]string
}

type ServiceRegistry

type ServiceRegistry interface {
	Register(instance ServiceInstance)
	Deregister(instance ServiceInstance)
	SetStatus(instance ServiceInstance, status string)
	GetStatus(instance ServiceInstance) any
}

Jump to

Keyboard shortcuts

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