core

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: BSD-3-Clause Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleManager

type ScheduleManager struct {
	sync.Mutex

	Started           bool
	StallAfterStartup int64 // in millis
	// Interval of heartbeat
	HeartbeatInterval time.Duration
	// Timeout to be death
	DeathTimeout time.Duration
	// Schedule interval
	ScheduleInterval time.Duration
	// Timeout when trying to shutdown
	ShutdownTimeout time.Duration
	// contains filtered or unexported fields
}

func New

func New(store store.Store) (*ScheduleManager, error)

func (*ScheduleManager) NeedStop

func (s *ScheduleManager) NeedStop() bool

func (*ScheduleManager) Scheduler

func (s *ScheduleManager) Scheduler() definition.Scheduler

func (*ScheduleManager) Shutdown

func (s *ScheduleManager) Shutdown()

func (*ScheduleManager) Start

func (s *ScheduleManager) Start()

func (*ScheduleManager) Store

func (s *ScheduleManager) Store() store.Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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