eureka

package
v1.2.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Overview

Package eureka implements a syncer from eureka to k8s.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	EurekaClient *fargo.EurekaConnection // Eureka API client
	Domain       string                  // Eureka DNS domain
	Sink         *connector.Sink         // Sink is the sink to update with services
	Prefix       string                  // Prefix is a prefix to prepend to services
	FilterTag    string                  // The tag value for services registered
	PrefixTag    string
	SuffixTag    string
	PassingOnly  bool
}

Source is the source for the sync that watches Consul services and updates a Sink whenever the set of services to register changes.

func (*Source) Aggregate

Aggregate micro services

func (*Source) Run

func (s *Source) Run(ctx context.Context)

Run is the long-running loop for watching Consul services and updating the Sink.

Jump to

Keyboard shortcuts

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