Documentation ¶
Index ¶
- type PersistentCache
- func (cache *PersistentCache) Add(name string, ip []byte)
- func (cache *PersistentCache) Close() error
- func (cache *PersistentCache) IPByName(name string) (ip []byte, found bool)
- func (cache *PersistentCache) MarkFresh(name string, ip []byte)
- func (cache *PersistentCache) NameByIP(ip []byte) (name string, found bool)
- func (cache *PersistentCache) NextSequence() (next uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistentCache ¶
type PersistentCache struct {
// contains filtered or unexported fields
}
PersistentCache is an age bounded on-disk cache
func (*PersistentCache) Add ¶
func (cache *PersistentCache) Add(name string, ip []byte)
func (*PersistentCache) Close ¶
func (cache *PersistentCache) Close() error
Close closes the persistent cache
func (*PersistentCache) IPByName ¶
func (cache *PersistentCache) IPByName(name string) (ip []byte, found bool)
func (*PersistentCache) MarkFresh ¶
func (cache *PersistentCache) MarkFresh(name string, ip []byte)
func (*PersistentCache) NameByIP ¶
func (cache *PersistentCache) NameByIP(ip []byte) (name string, found bool)
func (*PersistentCache) NextSequence ¶
func (cache *PersistentCache) NextSequence() (next uint32)
Click to show internal directories.
Click to hide internal directories.