Documentation ¶
Index ¶
- type Cache
- func (c *Cache) AddChunks(chunks []api.ChunkTracker, nodename string)
- func (c *Cache) ChunkExist(chunkname string) bool
- func (c *Cache) ChunkExistInNode(nodename, chunkname string) bool
- func (c *Cache) ChunkNodes(chunkname string) []string
- func (c *Cache) DeleteChunks(chunks []api.ChunkTracker, nodename string)
- func (c *Cache) Load(k string) interface{}
- func (c *Cache) NodeTotalSizeBytes(nodename string) (size int64)
- func (c *Cache) Snapshot() *Cache
- func (c *Cache) Store(k string, v interface{})
- type ChunkInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache will maintain the data info of all the peers across cluster.
func (*Cache) ChunkExist ¶
func (*Cache) ChunkExistInNode ¶ added in v0.0.2
func (*Cache) ChunkNodes ¶
func (*Cache) DeleteChunks ¶
func (c *Cache) DeleteChunks(chunks []api.ChunkTracker, nodename string)
DeleteChunks will delete chunks from one node.
func (*Cache) NodeTotalSizeBytes ¶
Maybe we can add a field to nodes to represents the totalSize and calculated when adding or removing.
Click to show internal directories.
Click to hide internal directories.