scheduler

package
v0.0.0-...-7ba98d9 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorGauge = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Subsystem: "schedule",
		Name:      "error_count",
		Help:      "errors trying to process an user",
	},
	[]string{"id"},
)

ErrorGauge is the error count for prometheus nolint: gochecknoglobals

View Source
var TimeGauge = prometheus.NewGaugeVec(
	prometheus.GaugeOpts{
		Subsystem: "schedule",
		Name:      "time_taken_seconds",
		Help:      "Time taken to scan the user",
	},
	[]string{"id"},
)

TimeGauge is the time_taken metric for prometheus nolint: gochecknoglobals

Functions

This section is empty.

Types

type Scheduler

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

Scheduler type

func New

func New(
	config config.Config,
	store datastore.Datastore,
	oauth *oauth.Oauth,
	session sessions.Store,
) *Scheduler

New scheduler

func (*Scheduler) Start

func (s *Scheduler) Start()

Start the scheduler

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop the scheduler

Jump to

Keyboard shortcuts

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