carserver

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "v0.0.0"

Functions

This section is empty.

Types

type CarServer added in v0.1.0

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

CarServer serves CAR files for a given root and selector.

func New

func (*CarServer) ServeCARFile added in v0.1.0

func (l *CarServer) ServeCARFile(ctx context.Context, dr *types.DagTraversalRequest, w io.Writer) error

type StationAPIImpl

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

func (*StationAPIImpl) AllStats

func (*StationAPIImpl) RecordDataDownloaded

func (s *StationAPIImpl) RecordDataDownloaded(ctx context.Context, bytesDownloaded uint64) error

func (*StationAPIImpl) RecordRetrievalServed

func (s *StationAPIImpl) RecordRetrievalServed(ctx context.Context, bytesServed, nErrors, nNotFound, nSuccess uint64) error

func (*StationAPIImpl) SetStorageStatsFetcher

func (s *StationAPIImpl) SetStorageStatsFetcher(ss station.StorageStatsFetcher)

Jump to

Keyboard shortcuts

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