prefix

package
v0.0.0-...-4a7eb78 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prefix

type Prefix struct {
	Checked map[string]time.Time
	Updated map[string]time.Time
	// contains filtered or unexported fields
}

func New

func New(c *prometheus.CounterVec) *Prefix

func (*Prefix) Add

func (p *Prefix) Add(prefix string) error

func (*Prefix) Check

func (p *Prefix) Check(prefix string) func()

func (*Prefix) Delete

func (p *Prefix) Delete(prefix string)

func (*Prefix) GetID

func (p *Prefix) GetID(prefix string) (cron.EntryID, error)

func (*Prefix) Update

func (p *Prefix) Update(prefix string)

func (*Prefix) UpdateID

func (p *Prefix) UpdateID(prefix string, i cron.EntryID)

Jump to

Keyboard shortcuts

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