cachefile

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

func (c *CacheFile) Close() error

func (*CacheFile) DelFakeipPair

func (c *CacheFile) DelFakeipPair(ip, host []byte) error

func (*CacheFile) GetFakeip

func (c *CacheFile) GetFakeip(key []byte) []byte

func (*CacheFile) PutFakeip

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)

Jump to

Keyboard shortcuts

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