progress

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

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

func New

func New(responseDir string) *Monitor

func (*Monitor) Drop

func (m *Monitor) Drop(requestId string)

func (*Monitor) Monitor

func (m *Monitor) Monitor(requestId string, monitoredProgress *MonitoredWork)

func (*Monitor) Start

func (m *Monitor) Start() error

func (*Monitor) Stop

func (m *Monitor) Stop() error

func (*Monitor) WatchGaugeCallback

func (m *Monitor) WatchGaugeCallback() float64

type MonitoredWork

type MonitoredWork struct {
	Context       context.Context
	MeteringEvent *metering.EventDetails
	RespondToWork chan<- *http.Response
	LastUpdate    time.Time
}

type Progress

type Progress struct {
	RequestId       string         `json:"id"`
	PercentComplete uint32         `json:"progress"`
	PartialResponse map[string]any `json:"partialResponse"`
}

Jump to

Keyboard shortcuts

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