qos

package
Version: v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AsyncEntries = EntriesRepo{/* contains filtered or unexported fields */}
View Source
var SyncEntries = EntriesRepo{/* contains filtered or unexported fields */}

Functions

func ListSyncEntries

func ListSyncEntries(c *gin.Context)

func RunSyncEntryEndpoint

func RunSyncEntryEndpoint(c *gin.Context)

Types

type EntriesRepo

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

func (*EntriesRepo) Entries

func (s *EntriesRepo) Entries() []model.QosEntryModel

func (*EntriesRepo) Entry

func (s *EntriesRepo) Entry(name string) (e Entry, found bool)

func (*EntriesRepo) Register

func (s *EntriesRepo) Register(e Entry)

type Entry

type Entry interface {
	Run() float64
	Name() string
}

func NewFunctionEntry

func NewFunctionEntry(name string, action func() float64) Entry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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