discovery

package
v0.0.0-...-0273df7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Kubernetes = "kubernetes"
	Consul     = "consul"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	IsServiceExists(ctx *fiber.Ctx) (bool, error)
	IsServiceHealthy(ctx *fiber.Ctx) (bool, error)
	Close()
}

func New

func New(discovery *Discovery) (Adapter, error)

type Discovery

type Discovery struct {
	Logger *zap.Logger
	Config *config.Config
	Source string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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