Documentation ¶
Index ¶
Constants ¶
View Source
const (
SectionKeySDJobNameLabel = "sd_job_name_label"
)
View Source
const (
SectionKeySDMetricsPathLabel = "sd_metrics_path_label"
)
View Source
const (
SectionKeySDPortLabel = "sd_port_label"
)
View Source
const (
SubSectionKey = "docker_label"
)
Variables ¶
View Source
var ChildRule = map[string]Rule{}
Functions ¶
func GetCurPath ¶
func GetCurPath() string
func RegisterRule ¶
Types ¶
type DockerLabel ¶
type DockerLabel struct { }
func (*DockerLabel) ApplyRule ¶
func (e *DockerLabel) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type Rule ¶
type Rule translator.Rule
type SDJobNameLabel ¶
type SDJobNameLabel struct { }
func (*SDJobNameLabel) ApplyRule ¶
func (d *SDJobNameLabel) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type SDMetricsPathLabel ¶
type SDMetricsPathLabel struct { }
func (*SDMetricsPathLabel) ApplyRule ¶
func (d *SDMetricsPathLabel) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type SDPortLabel ¶
type SDPortLabel struct { }
func (*SDPortLabel) ApplyRule ¶
func (d *SDPortLabel) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
Click to show internal directories.
Click to hide internal directories.