endpointer

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDType

type SDType string

SDType defines service discovery types

const (
	// SDTypeConsul consul
	SDTypeConsul SDType = "consul"
	// SDTypeNone no service discovery
	SDTypeNone SDType = "none"
)

type WithTag

type WithTag interface {
	sd.Endpointer
	GetTagMap() map[string][]string
}

WithTag extends Endpointer with tag support

func NewConsulEndpointer

func NewConsulEndpointer(sdCfgMap map[string]string, sdFactory sd.Factory, service string, tags []string, passingOnly bool) (epr WithTag, err error)

NewConsulEndpointer creates an endpointer backed by consul service discovery

func NewDirectEndpointer

func NewDirectEndpointer(host string, sdFactory sd.Factory) (endpointer WithTag, err error)

NewDirectEndpointer creates an endpointer with no service discovery, and connect given host directly

Jump to

Keyboard shortcuts

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