mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 09:46:16 +02:00
f4ab297b31
`///@file` makes them show up in the internal API dos. A tiny few were missing `#pragma once`.
32 lines
593 B
C++
32 lines
593 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "binary-cache-store.hh"
|
|
|
|
#include <atomic>
|
|
|
|
namespace nix {
|
|
|
|
class S3BinaryCacheStore : public virtual BinaryCacheStore
|
|
{
|
|
protected:
|
|
|
|
S3BinaryCacheStore(const Params & params);
|
|
|
|
public:
|
|
|
|
struct Stats
|
|
{
|
|
std::atomic<uint64_t> put{0};
|
|
std::atomic<uint64_t> putBytes{0};
|
|
std::atomic<uint64_t> putTimeMs{0};
|
|
std::atomic<uint64_t> get{0};
|
|
std::atomic<uint64_t> getBytes{0};
|
|
std::atomic<uint64_t> getTimeMs{0};
|
|
std::atomic<uint64_t> head{0};
|
|
};
|
|
|
|
virtual const Stats & getS3Stats() = 0;
|
|
};
|
|
|
|
}
|