container

package
v2.5.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContainer

func NewContainer(cfg Config) (*endure.Endure, error)

NewContainer creates endure container with all required options (based on container Config). Logger is nil by default.

func Plugins

func Plugins() []interface{}

Plugins returns active plugins for the endure container. Feel free to add or remove any plugins.

Types

type Config

type Config struct {
	GracePeriod time.Duration
	PrintGraph  bool
	RetryOnFail bool // TODO check for races, disabled at this moment
	LogLevel    endure.Level
}

func NewConfig

func NewConfig(cfgPlugin *config.Viper) (*Config, error)

NewConfig creates endure container configuration.

Jump to

Keyboard shortcuts

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