initialization

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Name         string
	DependsOn    string
	Timeout      time.Duration
	InitInterval time.Duration
	Init         func(*logrus.Entry) error
}

func (*Module) Run

func (mod *Module) Run(wg *sync.WaitGroup, locks map[string]chan bool)

type Modules

type Modules []Module

func (Modules) Add

func (modules Modules) Add(m *Module) Modules

func (Modules) InitAll

func (modules Modules) InitAll()

Jump to

Keyboard shortcuts

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