agent

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBNotificationThread

func DBNotificationThread(ctx context.Context, w Worker)

func NewGoCronLogger added in v1.3.0

func NewGoCronLogger() gocron.Logger

func NewScheduler added in v1.3.0

func NewScheduler() gocron.Scheduler

func PrometheusListenerThread

func PrometheusListenerThread()

func RegisterAgent

func RegisterAgent(pool db.PgxIface, provider string)

Types

type PrometheusMonitor added in v1.3.0

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

func NewPrometheusMonitor added in v1.3.0

func NewPrometheusMonitor() *PrometheusMonitor

func (PrometheusMonitor) IncrementJob added in v1.3.0

func (p PrometheusMonitor) IncrementJob(_ uuid.UUID, name string, tags []string, status gocron.JobStatus)

func (PrometheusMonitor) RecordJobTiming added in v1.3.0

func (p PrometheusMonitor) RecordJobTiming(startTime, endTime time.Time, _ uuid.UUID, name string, tags []string)

type Worker

type Worker interface {
	ProcessServices(context.Context) error
	ProcessEndpoint(context.Context, strfmt.UUID) error
	GetPool() db.PgxIface
	GetScheduler() gocron.Scheduler
}

Directories

Path Synopsis
f5
as3

Jump to

Keyboard shortcuts

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