neo-go/pkg/rpc/client/nns/record.go
Evgeniy Stratonikov e890c32dcc rpc/client: remove dependency on examples
Duplicate necessary structures in a dedicated micropackage.

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
2022-01-25 12:41:06 +03:00

27 lines
646 B
Go

package nns
// RecordState is a type that registered entities are saved to.
type RecordState struct {
Name string
Type RecordType
Data string
}
// RecordType is domain name service record types.
type RecordType byte
// Record types 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 defined in [RFC 3596](https://tools.ietf.org/html/rfc3596)
const (
// AAAA represents IPv6 address record type.
AAAA RecordType = 28
)