Documentation
¶
Index ¶
- type CacheFile
- func (c *CacheFile) Close() error
- func (c *CacheFile) FakeIpStore() *FakeIpStore
- func (c *CacheFile) GetETagWithHash(key string) (etagWithHash EtagWithHash)
- func (c *CacheFile) GetSubscriptionInfo(name string) (userInfo string)
- func (c *CacheFile) SelectedMap() map[string]string
- func (c *CacheFile) SetETagWithHash(url string, etagWithHash EtagWithHash)
- func (c *CacheFile) SetSelected(group, selected string)
- func (c *CacheFile) SetSubscriptionInfo(name string, userInfo string)
- type EtagWithHash
- type FakeIpStore
- func (c *FakeIpStore) DelByIP(ip netip.Addr)
- func (c *FakeIpStore) FlushFakeIP() error
- func (c *FakeIpStore) GetByHost(host string) (ip netip.Addr, exist bool)
- func (c *FakeIpStore) GetByIP(ip netip.Addr) (host string, exist bool)
- func (c *FakeIpStore) PutByHost(host string, ip netip.Addr)
- func (c *FakeIpStore) PutByIP(ip netip.Addr, host string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheFile ¶
CacheFile store and update the cache file
func (*CacheFile) FakeIpStore ¶ added in v1.18.9
func (c *CacheFile) FakeIpStore() *FakeIpStore
func (*CacheFile) GetETagWithHash ¶ added in v1.18.9
func (c *CacheFile) GetETagWithHash(key string) (etagWithHash EtagWithHash)
func (*CacheFile) GetSubscriptionInfo ¶ added in v1.18.10
func (*CacheFile) SelectedMap ¶
func (*CacheFile) SetETagWithHash ¶ added in v1.18.9
func (c *CacheFile) SetETagWithHash(url string, etagWithHash EtagWithHash)
func (*CacheFile) SetSelected ¶
func (*CacheFile) SetSubscriptionInfo ¶ added in v1.18.10
type EtagWithHash ¶ added in v1.18.9
type FakeIpStore ¶ added in v1.18.9
type FakeIpStore struct {
*CacheFile
}
func (*FakeIpStore) DelByIP ¶ added in v1.18.9
func (c *FakeIpStore) DelByIP(ip netip.Addr)
func (*FakeIpStore) FlushFakeIP ¶ added in v1.18.9
func (c *FakeIpStore) FlushFakeIP() error
func (*FakeIpStore) GetByHost ¶ added in v1.18.9
func (c *FakeIpStore) GetByHost(host string) (ip netip.Addr, exist bool)
func (*FakeIpStore) GetByIP ¶ added in v1.18.9
func (c *FakeIpStore) GetByIP(ip netip.Addr) (host string, exist bool)
Click to show internal directories.
Click to hide internal directories.