metrics

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 13 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 ProxyMiddleware

func ProxyMiddleware(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 S3Service

type S3Service interface {
	Count(flow xctx.Flow, storage string, method s3.Method)
	Upload(flow xctx.Flow, storage, bucket string, bytes int)
	Download(flow xctx.Flow, storage, bucket string, bytes int)

	RcloneCalcMemUsageInc(bytes int64)
	RcloneCalcMemUsageDec(bytes int64)
	RcloneCalcFileSizeInc(bytes int64)
	RcloneCalcFileSizeDec(bytes int64)
	RcloneCalcFileNumInc()
	RcloneCalcFileNumDec()
}

func NewS3Service

func NewS3Service(enabled bool) S3Service

Jump to

Keyboard shortcuts

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