prom

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prom

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

func New

func New(options opt.Options) (*Prom, error)

func (*Prom) Out

func (p *Prom) Out() <-chan promql.Matrix

func (*Prom) Run

func (p *Prom) Run(ctx context.Context) error

type SequentialQueryTracker

type SequentialQueryTracker chan struct{}

SequentialQueryTracker is a query tracker that allows only one query to be active at a time.

func NewSequentialQueryTracker

func NewSequentialQueryTracker() SequentialQueryTracker

func (SequentialQueryTracker) Delete

func (s SequentialQueryTracker) Delete(int)

func (SequentialQueryTracker) GetMaxConcurrent

func (s SequentialQueryTracker) GetMaxConcurrent() int

func (SequentialQueryTracker) Insert

func (s SequentialQueryTracker) Insert(ctx context.Context, _ string) (int, error)

Jump to

Keyboard shortcuts

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