Documentation ¶ Index ¶ type CacheFile func Cache() *CacheFile func (c *CacheFile) Close() error func (c *CacheFile) GetFakeip(key []byte) []byte func (c *CacheFile) PutFakeip(key, value []byte) error func (c *CacheFile) SelectedMap() map[string]string func (c *CacheFile) SetSelected(group, selected string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type CacheFile ¶ type CacheFile struct { DB *bbolt.DB } CacheFile store and update the cache file func Cache ¶ func Cache() *CacheFile Cache return singleton of CacheFile func (*CacheFile) Close ¶ added in v1.8.0 func (c *CacheFile) Close() error func (*CacheFile) GetFakeip ¶ added in v1.8.0 func (c *CacheFile) GetFakeip(key []byte) []byte func (*CacheFile) PutFakeip ¶ added in v1.8.0 func (c *CacheFile) PutFakeip(key, value []byte) error func (*CacheFile) SelectedMap ¶ func (c *CacheFile) SelectedMap() map[string]string func (*CacheFile) SetSelected ¶ func (c *CacheFile) SetSelected(group, selected string) Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.