Documentation ¶
Index ¶
Constants ¶
View Source
const (
SectionKeySDContainerNamePattern = "sd_container_name_pattern"
)
View Source
const (
SectionKeySDJobName = "sd_job_name"
)
View Source
const (
SectionKeySDMetricsPath = "sd_metrics_path"
)
View Source
const (
SectionKeySDMetricsPorts = "sd_metrics_ports"
)
View Source
const (
SectionKeySDServiceNamePattern = "sd_service_name_pattern"
)
View Source
const (
SubSectionKey = "service_name_list_for_tasks"
)
Variables ¶
View Source
var ChildRule = map[string]Rule{}
Functions ¶
func GetCurPath ¶
func GetCurPath() string
func RegisterRule ¶
Types ¶
type Rule ¶
type Rule translator.Rule
type SDContainerNamePattern ¶
type SDContainerNamePattern struct { }
func (*SDContainerNamePattern) ApplyRule ¶
func (d *SDContainerNamePattern) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Optional Key
type SDMetricsPath ¶
type SDMetricsPath struct { }
func (*SDMetricsPath) ApplyRule ¶
func (d *SDMetricsPath) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Optional Key
type SDMetricsPorts ¶
type SDMetricsPorts struct { }
func (*SDMetricsPorts) ApplyRule ¶
func (d *SDMetricsPorts) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Mandatory Key
type SDServiceNamePattern ¶
type SDServiceNamePattern struct { }
func (*SDServiceNamePattern) ApplyRule ¶
func (d *SDServiceNamePattern) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Mandatory Key
type ServiceEndpoint ¶
type ServiceEndpoint struct { }
func (*ServiceEndpoint) ApplyRule ¶
func (e *ServiceEndpoint) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Click to show internal directories.
Click to hide internal directories.