favcache

package
v1.0.2-0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2015 License: BSD-3-Clause, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Cache is a simple cache of kbfs folder favorites. It doesn't try to do anything fancy.

func New

func New() *Cache

New creates a Cache.

func (*Cache) Add

func (c *Cache) Add(f keybase1.Folder)

Add inserts a folder into the cache.

func (*Cache) Delete

func (c *Cache) Delete(f keybase1.Folder)

Delete removes a folder from the cache.

func (*Cache) List

func (c *Cache) List() []keybase1.Folder

List returns all the folders in the cache.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL