metrics

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentMiddleware

func AgentMiddleware(next http.Handler) http.Handler

func NewResponseWriter

func NewResponseWriter(w http.ResponseWriter) *responseWriter

func NewS3Service

func NewS3Service(enabled bool) *svc

func ProxyMiddleware

func ProxyMiddleware() func(next http.Handler) http.Handler

func Server

func Server(ctx context.Context, port int, version dom.AppInfo) (start func(context.Context) error, stop func(context.Context) error)

func WorkerMiddleware

func WorkerMiddleware() asynq.MiddlewareFunc

Types

type Config

type Config struct {
	Enabled bool `yaml:"enabled"`
	Port    int  `yaml:"port"`
}

type Service added in v0.7.0

type Service interface {
	Count(flow xctx.Flow, storage string, method string)
	Upload(flow xctx.Flow, storage, bucket string, bytes int)
	Download(flow xctx.Flow, storage, bucket string, bytes int)
}

type WorkerService added in v0.7.0

type WorkerService interface {
	WorkerInProgressBytesInc(ctx context.Context, bytes int64)
	WorkerInProgressBytesDec(ctx context.Context, bytes int64)
}

Jump to

Keyboard shortcuts

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