cachefile

package
v0.0.0-...-890cd7e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-2.0 Imports: 5 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
	// contains filtered or unexported fields
}

func Open

func Open(path string, cacheID string) (*CacheFile, error)

func (*CacheFile) Close

func (c *CacheFile) Close() error

func (*CacheFile) FakeIPLoad

func (c *CacheFile) FakeIPLoad(address netip.Addr) (string, bool)

func (*CacheFile) FakeIPMetadata

func (c *CacheFile) FakeIPMetadata() *adapter.FakeIPMetadata

func (*CacheFile) FakeIPReset

func (c *CacheFile) FakeIPReset() error

func (*CacheFile) FakeIPSaveMetadata

func (c *CacheFile) FakeIPSaveMetadata(metadata *adapter.FakeIPMetadata) error

func (*CacheFile) FakeIPStore

func (c *CacheFile) FakeIPStore(address netip.Addr, domain string) error

func (*CacheFile) LoadSelected

func (c *CacheFile) LoadSelected(group string) string

func (*CacheFile) StoreSelected

func (c *CacheFile) StoreSelected(group, selected string) error

Jump to

Keyboard shortcuts

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