reconciliation

package
v0.0.0-...-907143c Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Type        Type      `gson:"type"`
	Guid        string    `gson:"guid"`
	LastUpdated time.Time `gson:"lastUpdated" json:"lastUpdated"`
}

type JobProvider

type JobProvider interface {
	AcceptReconcileJob(olderThan time.Duration) (Job, bool)
}

type ReconcileHandler

type ReconcileHandler func(j Job) error

type Reconciler

type Reconciler interface {
	Run() (bool, error)
	Handler(t Type, f ReconcileHandler)
}

func NewReconciler

func NewReconciler(p JobProvider, olderThan time.Duration) Reconciler

type Scheduler

type Scheduler interface {
	Run(n int, d time.Duration) error
}

func NewScheduler

func NewScheduler(r Reconciler) Scheduler

type Type

type Type string

Jump to

Keyboard shortcuts

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