mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-27 05:42:56 +00:00
28908aa3cf
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
27 lines
654 B
Go
27 lines
654 B
Go
package nns
|
|
|
|
// RecordState is a type that registered entities are saved as.
|
|
type RecordState struct {
|
|
Name string
|
|
Type RecordType
|
|
Data string
|
|
}
|
|
|
|
// RecordType is domain name service record types.
|
|
type RecordType byte
|
|
|
|
// Record types are defined in [RFC 1035](https://tools.ietf.org/html/rfc1035)
|
|
const (
|
|
// A represents address record type.
|
|
A RecordType = 1
|
|
// CNAME represents canonical name record type.
|
|
CNAME RecordType = 5
|
|
// TXT represents text record type.
|
|
TXT RecordType = 16
|
|
)
|
|
|
|
// Record types are defined in [RFC 3596](https://tools.ietf.org/html/rfc3596)
|
|
const (
|
|
// AAAA represents IPv6 address record type.
|
|
AAAA RecordType = 28
|
|
)
|