blackbox: github.com/concourse/blackbox Index | Files | Directories

package blackbox

import "github.com/concourse/blackbox"

Index

Package Files

config.go file_watcher.go tailer.go

Constants

const POLL_INTERVAL = 5 * time.Second

func NewFileWatcher Uses

func NewFileWatcher(
    logger *log.Logger,
    sourceDir string,
    dynamicGroupClient grouper.DynamicClient,
    drainerFactory syslog.DrainerFactory,
) *fileWatcher

type Config Uses

type Config struct {
    Hostname string `yaml:"hostname"`

    Syslog SyslogConfig `yaml:"syslog"`
}

func LoadConfig Uses

func LoadConfig(path string) (*Config, error)

type Duration Uses

type Duration time.Duration

func (*Duration) UnmarshalYAML Uses

func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error

type SyslogConfig Uses

type SyslogConfig struct {
    Destination syslog.Drain `yaml:"destination"`
    SourceDir   string       `yaml:"source_dir"`
}

type Tailer Uses

type Tailer struct {
    Path    string
    Tag     string
    Drainer syslog.Drainer
}

func (*Tailer) Run Uses

func (tailer *Tailer) Run(signals <-chan os.Signal, ready chan<- struct{}) error

Directories

PathSynopsis
integration
syslog
syslog/syslogfakesThis file was generated by counterfeiter

Package blackbox imports 12 packages (graph) and is imported by 1 packages. Updated 2018-04-17. Refresh now. Tools for package owners.