jobqueue

package
v0.0.0-...-b5dcede Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseQueue

func CloseQueue() bool

queueJob puts job into channel. If channel buffer is full, return false.

func InitQueue

func InitQueue(elements uint32) bool

queueJob puts job into channel. If channel buffer is full, return false.

func SendJob

func SendJob(metricName string, metricTytpe MetricType) bool

send a job worker processes jobs.

Types

type JobObject

type JobObject struct {
	NameStats  string
	Type       MetricType
	CreateDate time.Time
}

swagger:model OLDAliasStruct

type MetricType

type MetricType int
const (
	GaugeType MetricType = iota
	CounterType
	HistogramType
)

Jump to

Keyboard shortcuts

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