reloader

package
v0.0.0-...-138c7d4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReloadEvent

func ReloadEvent(_, pidFilePath string) error

ReloadEvent send reload event

Types

type PathConfig

type PathConfig struct {
	Path paths.Path `config:"path"`
}

PathConfig struct contains the basic path configuration of every beat

type ReloadIf

type ReloadIf interface {
	Reload(*common.Config)
}

ReloadIf

type Reloader

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

Reloader is used to register and reload modules

func NewReloader

func NewReloader(name string, hadnler ReloadIf) *Reloader

NewReloader creates new Reloader instance for the given config

func (*Reloader) Run

func (rl *Reloader) Run(_ string) error

Run runs the reloader

func (*Reloader) Stop

func (rl *Reloader) Stop()

Stop stops the reloader and waits for all modules to properly stop

Jump to

Keyboard shortcuts

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