Versions in this module Expand all Collapse all v2 v2.5.0 Jan 15, 2020 Changes in this version + var BuildDate string + var BuildVersion = "v0.0.0-dev" + var CommitHash string + var DefaultStartTimeout = time.Second * 15 + var DefaultStopTimeout = time.Second * 5 + var DumpStackTraceOnTimeout = os.Getenv("DUMP_STACK_ON_TIMEOUT") != "" + type Agent interface + After func() <-chan struct{} + Error func() error + Options func() Options + Run func() error + Start func() error + Stop func() error + Wait func() error + func NewAgent(opts ...Option) Agent + type Option func(*Options) + func AllPlugins(plugins ...infra.Plugin) Option + func Context(ctx context.Context) Option + func Plugins(plugins ...infra.Plugin) Option + func QuitOnClose(ch chan struct{}) Option + func QuitSignals(sigs ...os.Signal) Option + func StartTimeout(timeout time.Duration) Option + func StopTimeout(timeout time.Duration) Option + func Version(buildVer, buildDate, commitHash string) Option + type Options struct + Context context.Context + Plugins []infra.Plugin + QuitChan chan struct{} + QuitSignals []os.Signal + StartTimeout time.Duration + StopTimeout time.Duration v2.5.0-alpha Dec 13, 2019 Other modules containing this package go.ligato.io/cn-infra