file

package
v0.0.0-...-1fc1f69 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package file provides a means for providing service discovery information via a YAML or JSON file. Changes to the file are propagated regularly. See "rotor help file" for usage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(updaterFlags rotor.UpdaterFromFlags) *command.Cmd

Cmd creates the file based collector sub command

Types

type Collector

type Collector interface {
	Run() error
}

Collector provides an exported interface for a fileCollector.

func NewCollector

func NewCollector(
	file string,
	updater updater.Updater,
	parser clusterParser,
) Collector

NewCollector is a factory for a file based collector.

Jump to

Keyboard shortcuts

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