file

package
v3.8.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package file is a file-based observer that is primarily meant for development and test purposes. It will watch a json file, which should consist of an array of serialized service instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.ObserverConfig
	Path string `default:"/etc/signalfx/service_instances.json"`
}

Config for the file observer

type File

type File struct {
	// contains filtered or unexported fields
}

File observer plugin

func (*File) Configure

func (file *File) Configure(config *Config) error

Configure the docker client

func (*File) Shutdown

func (file *File) Shutdown()

Shutdown the service differ routine

Jump to

Keyboard shortcuts

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