Documentation ¶ Overview ¶ Package decoder decodes a raw tinydns record. Index ¶ type Entry func TdnsRecord(name packet.Namelabel, raw []byte) (Entry, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Entry ¶ type Entry struct { // Record type. Type uint16 // TimeToLive. Ttl uint32 // TimeToDie. Ttd uint64 // XXX XLoc byte // Raw payload data; type specific. Data []byte // The name this record is for. Name packet.Namelabel } func TdnsRecord ¶ func TdnsRecord(name packet.Namelabel, raw []byte) (Entry, error) TdnsRecord decodes a raw tinydns-like record entry. Source Files ¶ View all Source files decoder.go Click to show internal directories. Click to hide internal directories.