Documentation
¶
Index ¶
- Variables
- func SaveToFile(c Cache, path string) error
- type Cache
- type TrackerCache
- func (s *TrackerCache) Clear()
- func (s *TrackerCache) Close()
- func (s *TrackerCache) Entries() uint64
- func (s *TrackerCache) Get(key string, buf []byte) []byte
- func (s *TrackerCache) Hits() uint64
- func (s *TrackerCache) Misses() uint64
- func (s *TrackerCache) Serialize(w io.Writer) error
- func (s *TrackerCache) Set(key string, val []byte)
- func (s *TrackerCache) Sets() uint64
- func (s *TrackerCache) Window(name string) (uint64, bool)
- type TrackerWindow
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Debug = false
)
Functions ¶
func SaveToFile ¶ added in v0.0.11
Types ¶
type Cache ¶
type Cache interface { Set(key string, val []byte) Get(key string, buf []byte) []byte Clear() Close() Entries() uint64 Serialize(w io.Writer) error }
func LoadFromFile ¶
type TrackerCache ¶ added in v0.0.11
type TrackerCache struct {
// contains filtered or unexported fields
}
func NewTracker ¶ added in v0.0.11
func NewTracker(c Cache, windows map[string]TrackerWindow) *TrackerCache
func (*TrackerCache) Clear ¶ added in v0.0.11
func (s *TrackerCache) Clear()
func (*TrackerCache) Close ¶ added in v0.0.11
func (s *TrackerCache) Close()
func (*TrackerCache) Entries ¶ added in v0.0.11
func (s *TrackerCache) Entries() uint64
func (*TrackerCache) Get ¶ added in v0.0.11
func (s *TrackerCache) Get(key string, buf []byte) []byte
func (*TrackerCache) Hits ¶ added in v0.0.11
func (s *TrackerCache) Hits() uint64
func (*TrackerCache) Misses ¶ added in v0.0.11
func (s *TrackerCache) Misses() uint64
func (*TrackerCache) Serialize ¶ added in v0.0.11
func (s *TrackerCache) Serialize(w io.Writer) error
func (*TrackerCache) Set ¶ added in v0.0.11
func (s *TrackerCache) Set(key string, val []byte)
func (*TrackerCache) Sets ¶ added in v0.0.11
func (s *TrackerCache) Sets() uint64
type TrackerWindow ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.