Documentation ¶
Index ¶
- Variables
- type CarServer
- type StationAPIImpl
- func (s *StationAPIImpl) AllStats(ctx context.Context) (station.StationStats, error)
- func (s *StationAPIImpl) RecordDataDownloaded(ctx context.Context, bytesDownloaded uint64) error
- func (s *StationAPIImpl) RecordRetrievalServed(ctx context.Context, bytesServed, nErrors, nNotFound, nSuccess uint64) error
- func (s *StationAPIImpl) SetStorageStatsFetcher(ss station.StorageStatsFetcher)
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 New(cs *carstore.CarStore, logger *logs.SaturnLogger, sapi station.StationAPI) *CarServer
func (*CarServer) ServeCARFile ¶ added in v0.1.0
type StationAPIImpl ¶
type StationAPIImpl struct {
// contains filtered or unexported fields
}
func NewStationAPIImpl ¶
func NewStationAPIImpl(ds datastore.Batching, ss station.StorageStatsFetcher) *StationAPIImpl
func (*StationAPIImpl) AllStats ¶
func (s *StationAPIImpl) AllStats(ctx context.Context) (station.StationStats, error)
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)
Click to show internal directories.
Click to hide internal directories.