station

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPInfo

type RPInfo struct {
	Version string
}

type ReqStats

type ReqStats struct {
	TotalBytesUploaded    uint64
	TotalBytesDownloaded  uint64
	NContentRequests      uint64
	NContentNotFoundReqs  uint64
	NSuccessfulRetrievals uint64

	NContentReqErrors uint64
}

type StationAPI

type StationAPI interface {
	RecordRetrievalServed(ctx context.Context, bytesServed, nErrors, nNotFound, nSuccess uint64) error
	AllStats(ctx context.Context) (StationStats, error)
	RecordDataDownloaded(ctx context.Context, bytesDownloaded uint64) error
}

type StationStats

type StationStats struct {
	RPInfo
	StorageStats
	ReqStats
}

type StorageStats

type StorageStats struct {
	BytesCurrentlyStored uint64
}

type StorageStatsFetcher

type StorageStatsFetcher interface {
	Stat() (StorageStats, error)
}

Jump to

Keyboard shortcuts

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