cachefile

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-2.0 Imports: 15 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(ctx context.Context, path string, cacheID string) (*CacheFile, error)

func (*CacheFile) Close

func (c *CacheFile) Close() error

func (*CacheFile) FakeIPLoad added in v1.3.0

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

func (*CacheFile) FakeIPLoadDomain added in v1.3.3

func (c *CacheFile) FakeIPLoadDomain(domain string, isIPv6 bool) (netip.Addr, bool)

func (*CacheFile) FakeIPMetadata added in v1.3.0

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

func (*CacheFile) FakeIPReset added in v1.3.0

func (c *CacheFile) FakeIPReset() error

func (*CacheFile) FakeIPSaveMetadata added in v1.3.0

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

func (*CacheFile) FakeIPSaveMetadataAsync added in v1.4.0

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

func (*CacheFile) FakeIPStore added in v1.3.0

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

func (*CacheFile) FakeIPStoreAsync added in v1.3.3

func (c *CacheFile) FakeIPStoreAsync(address netip.Addr, domain string, logger logger.Logger)

func (*CacheFile) LoadGroupExpand added in v1.4.0

func (c *CacheFile) LoadGroupExpand(group string) (isExpand bool, loaded bool)

func (*CacheFile) LoadMode added in v1.4.0

func (c *CacheFile) LoadMode() string

func (*CacheFile) LoadSelected

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

func (*CacheFile) StoreGroupExpand added in v1.4.0

func (c *CacheFile) StoreGroupExpand(group string, isExpand bool) error

func (*CacheFile) StoreMode added in v1.4.0

func (c *CacheFile) StoreMode(mode string) error

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