models

package
v1.51.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SchemeTagsKey     = "promconsulfetcher.scheme"
	MetricPathTagsKey = "promconsulfetcher.metric_path"
)

Variables

View Source
var (

	// CatalogServiceQueryRe is the regular expression to use.
	CatalogServiceQueryRe = regexp.MustCompile(`\A` + tagRe + serviceNameRe + dcRe + nearRe + `\z`)
)

Functions

This section is empty.

Types

type Route

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

func (*Route) FindMetricsPath

func (r *Route) FindMetricsPath() string

func (*Route) FindScheme

func (r *Route) FindScheme() string

type Routes

type Routes []*Route

type ServiceSearch

type ServiceSearch struct {
	Datacenter string
	Name       string
	Near       string
	Tag        string
}

func SearchToServiceSearch

func SearchToServiceSearch(search string) (ServiceSearch, error)

func (ServiceSearch) String

func (s ServiceSearch) String() string

type ServiceTags

type ServiceTags []string

Jump to

Keyboard shortcuts

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