cron

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearTaskLogEntriesConf

type ClearTaskLogEntriesConf struct {
	Cron    string
	ForDays int
	Enable  bool
}

Configurations for vacuum of query objects

func (*ClearTaskLogEntriesConf) String

func (c *ClearTaskLogEntriesConf) String() string

type SyncCmdbFromBossConf

type SyncCmdbFromBossConf struct {
	InitialDelayInSeconds int
	FixedDelayInSeconds   int
	ErrorDelayInSeconds   int

	Enable bool
}

Configuration for synchronized job of CMDB from BOSS database

func (*SyncCmdbFromBossConf) String

func (c *SyncCmdbFromBossConf) String() string

type TaskCronConfig

type TaskCronConfig struct {
	VacuumQueryObjects  *VacuumQueryObjectsConf
	VacuumGraphIndex    *VacuumGraphIndexConf
	ClearTaskLogEntries *ClearTaskLogEntriesConf
	SyncCmdbFromBoss    *SyncCmdbFromBossConf
}

type TaskCronService

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

func NewCronServices

func NewCronServices(cronConfig *TaskCronConfig) *TaskCronService

func (*TaskCronService) Start

func (s *TaskCronService) Start()

func (*TaskCronService) Stop

func (s *TaskCronService) Stop()

type VacuumGraphIndexConf

type VacuumGraphIndexConf struct {
	Cron    string
	ForDays int
	Enable  bool
}

Configurations for vacuum of graph index

func (*VacuumGraphIndexConf) String

func (v *VacuumGraphIndexConf) String() string

type VacuumQueryObjectsConf

type VacuumQueryObjectsConf struct {
	Cron    string
	ForDays int
	Enable  bool
}

Configurations for vacuum of query objects

func (*VacuumQueryObjectsConf) String

func (v *VacuumQueryObjectsConf) String() string

Jump to

Keyboard shortcuts

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