dns-4.0.1: DNS library in Haskell
Safe HaskellNone
LanguageHaskell2010

Network.DNS.Memo

Documentation

data Section Source #

Constructors

Answer 
Authority 

Instances

Instances details
Eq Section Source # 
Instance details

Defined in Network.DNS.Memo

Methods

(==) :: Section -> Section -> Bool

(/=) :: Section -> Section -> Bool

Ord Section Source # 
Instance details

Defined in Network.DNS.Memo

Methods

compare :: Section -> Section -> Ordering

(<) :: Section -> Section -> Bool

(<=) :: Section -> Section -> Bool

(>) :: Section -> Section -> Bool

(>=) :: Section -> Section -> Bool

max :: Section -> Section -> Section

min :: Section -> Section -> Section

Show Section Source # 
Instance details

Defined in Network.DNS.Memo

Methods

showsPrec :: Int -> Section -> ShowS

show :: Section -> String

showList :: [Section] -> ShowS

type Key = (ByteString, TYPE) Source #

type Prio = Elapsed Source #

type Entry = Either DNSError [RData] Source #

type DB = OrdPSQ Key Prio Entry Source #

type Cache = Reaper DB (Key, Prio, Entry) Source #

newCache :: Int -> IO Cache Source #

lookupCache :: Key -> Cache -> IO (Maybe (Prio, Entry)) Source #

insertCache :: Key -> Prio -> Entry -> Cache -> IO () Source #

prune :: DB -> IO (DB -> DB) Source #

copy :: RData -> RData Source #

copyOData :: OData -> OData Source #