qos

package
v2.21.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncEntries

func AsyncEntries(ctx context.Context) []model.QosEntryModel

func EnsureContextWithQosEntryCollector added in v2.2.9

func EnsureContextWithQosEntryCollector(ctx context.Context) context.Context

func ListSyncEntriesHandler added in v2.2.9

func ListSyncEntriesHandler(ctx context.Context) gin.HandlerFunc

func RegisterAsyncEntry added in v2.2.9

func RegisterAsyncEntry(ctx context.Context, e Entry)

func RegisterSyncEntry added in v2.2.9

func RegisterSyncEntry(ctx context.Context, e Entry)

func RunSyncEntryEndpointHandler added in v2.2.9

func RunSyncEntryEndpointHandler(ctx context.Context) gin.HandlerFunc

func SyncEntries

func SyncEntries(ctx context.Context) []model.QosEntryModel

Types

type Entry

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

func AsyncEntry added in v2.2.9

func AsyncEntry(ctx context.Context, name string) (e Entry, found bool)

func NewFunctionEntry

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

func SyncEntry added in v2.2.9

func SyncEntry(ctx context.Context, name string) (e Entry, found bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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