Documentation ¶
Index ¶
- func FindParentDir(path string) (string, error)
- type Broker
- type DoubleLink
- type LRUCache
- func (this *LRUCache) AddToHead(node *DoubleLink)
- func (this *LRUCache) Flush()
- func (this *LRUCache) Get(key string) (interface{}, bool)
- func (this *LRUCache) MoveToHead(node *DoubleLink)
- func (this *LRUCache) Put(key string, value interface{})
- func (this *LRUCache) RemoveNode(node *DoubleLink)
- func (this *LRUCache) RemoveTail() *DoubleLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindParentDir ¶
Types ¶
type DoubleLink ¶
type DoubleLink struct { Val interface{} Key string Next *DoubleLink Prev *DoubleLink }
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
func CacheConstructor ¶
func (*LRUCache) AddToHead ¶
func (this *LRUCache) AddToHead(node *DoubleLink)
func (*LRUCache) MoveToHead ¶
func (this *LRUCache) MoveToHead(node *DoubleLink)
func (*LRUCache) RemoveNode ¶
func (this *LRUCache) RemoveNode(node *DoubleLink)
func (*LRUCache) RemoveTail ¶
func (this *LRUCache) RemoveTail() *DoubleLink
Click to show internal directories.
Click to hide internal directories.