cache

package
v0.0.0-...-9bcce1a Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	IPv4Address string
	IPv6Address string
	ModTime     *time.Time
}

func Load

func Load() (*Cache, error)

func (*Cache) NeedUpdate

func (cache *Cache) NeedUpdate(ipv4Address string, ipv6Address string, modTime *time.Time) bool

func (*Cache) Update

func (cache *Cache) Update(config *config.Config, modTime *time.Time, enableIPv4 bool, enableIPv6 bool) (updated bool, err error)

Jump to

Keyboard shortcuts

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