metrics

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder interface {
	RecordCacheRequest(hit bool)
	RecordCacheUpload()
	RecordStorageDeletionFailure()
}

func NopRecorder

func NopRecorder() Recorder

type Registry

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

func New

func New(db *ent.Client) *Registry

func (*Registry) Handler

func (r *Registry) Handler() http.Handler

func (*Registry) RecordCacheRequest

func (r *Registry) RecordCacheRequest(hit bool)

func (*Registry) RecordCacheUpload

func (r *Registry) RecordCacheUpload()

func (*Registry) RecordStorageDeletionFailure

func (r *Registry) RecordStorageDeletionFailure()

Jump to

Keyboard shortcuts

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