Versions in this module Expand all Collapse all v1 v1.4.1 Apr 12, 2023 v1.4.0 Apr 6, 2023 v1.4.0-alpha Mar 6, 2023 v1.3.0 Nov 24, 2022 v1.3.0-alpha Nov 24, 2022 v1.2.0 Oct 31, 2022 v1.2.0-beta.4 Oct 25, 2022 v1.2.0-beta.3 Sep 22, 2022 v1.2.0-beta.2 Jul 16, 2022 v1.2.0-beta.1 Jul 14, 2022 v1.2.0-beta.0 May 10, 2022 v1.1.0 May 7, 2022 v1.1.0-beta.0 Apr 26, 2022 v1.0.2 Apr 14, 2022 v1.0.1 Dec 5, 2021 v1.0.0 Sep 18, 2021 Changes in this version + const AA_ + const AD_ + const CD_ + const ClassANY + const ClassCHAOS + const ClassCSNET + const ClassHESIOD + const ClassINET + const ClassNONE + const EDNS0COOKIE + const EDNS0DAU + const EDNS0DHU + const EDNS0EXPIRE + const EDNS0LLQ + const EDNS0LOCALEND + const EDNS0LOCALSTART + const EDNS0N3U + const EDNS0NSID + const EDNS0PADDING + const EDNS0SUBNET + const EDNS0TCPKEEPALIVE + const EDNS0UL + const HeaderSize + const MaxMsgSize + const MinMsgSize + const OpCodePolarisBatchReportServiceCallResult + const OpCodePolarisDeregisterInstance + const OpCodePolarisGetOneInstance + const OpCodePolarisGetResource + const OpCodePolarisHeartbeat + const OpCodePolarisRegisterInstance + const OpCodePolarisReportClient + const OpcodeIQuery + const OpcodeNotify + const OpcodeQuery + const OpcodeStatus + const OpcodeUpdate + const PackCtrlRRName + const QR_ + const RA_ + const RD_ + const RcodeBadAlg + const RcodeBadCookie + const RcodeBadKey + const RcodeBadMode + const RcodeBadName + const RcodeBadSig + const RcodeBadTime + const RcodeBadTrunc + const RcodeBadVers + const RcodeFormatError + const RcodeNXRrset + const RcodeNameError + const RcodeNotAuth + const RcodeNotImplemented + const RcodeNotZone + const RcodeRefused + const RcodeServerFailure + const RcodeSuccess + const RcodeYXDomain + const RcodeYXRrset + const TC_ + const TypeA + const TypeAAAA + const TypeAFSDB + const TypeANY + const TypeAPL + const TypeATMA + const TypeAVC + const TypeAXFR + const TypeCAA + const TypeCDNSKEY + const TypeCDS + const TypeCERT + const TypeCNAME + const TypeCSYNC + const TypeDHCID + const TypeDLV + const TypeDNAME + const TypeDNSKEY + const TypeDS + const TypeEID + const TypeEUI48 + const TypeEUI64 + const TypeGID + const TypeGPOS + const TypeHINFO + const TypeHIP + const TypeISDN + const TypeIXFR + const TypeKEY + const TypeKX + const TypeL32 + const TypeL64 + const TypeLOC + const TypeLP + const TypeMAILA + const TypeMAILB + const TypeMB + const TypeMD + const TypeMF + const TypeMG + const TypeMINFO + const TypeMR + const TypeMX + const TypeNAPTR + const TypeNID + const TypeNIMLOC + const TypeNINFO + const TypeNS + const TypeNSAPPTR + const TypeNSEC + const TypeNSEC3 + const TypeNSEC3PARAM + const TypeNULL + const TypeNXT + const TypeNone + const TypeOPENPGPKEY + const TypeOPT + const TypePTR + const TypePX + const TypePackCtrl + const TypePolarisDetailErrInfo + const TypePolarisGetOneInstance + const TypePolarisInstance + const TypePolarisResource + const TypePolarisResponse + const TypePolarisSideCarLocation + const TypePolarisStream + const TypePolarsHead + const TypeRKEY + const TypeRP + const TypeRRSIG + const TypeRT + const TypeReserved + const TypeSIG + const TypeSMIMEA + const TypeSOA + const TypeSPF + const TypeSRV + const TypeSSHFP + const TypeTA + const TypeTALINK + const TypeTKEY + const TypeTLSA + const TypeTSIG + const TypeTXT + const TypeUID + const TypeUINFO + const TypeUNSPEC + const TypeURI + const TypeX25 + const Z_ + var ClassToString = map[uint16]string + var ErrBuf error = &Error + var ErrConnEmpty error = &Error + var ErrExtendedRcode error = &Error + var ErrId error = &Error + var ErrLongDomain error = &Error + var ErrRCode error = &Error + var ErrRData error = &Error + var ErrRRSet error = &Error + var OpcodeToString = map[int]string + var RcodeToString = map[int]string + var StringToClass = reverseInt16(ClassToString) + var StringToOpcode = reverseInt(OpcodeToString) + var StringToRcode = reverseInt(RcodeToString) + var StringToType = reverseInt16(TypeToString) + var TypeToQuestion = map[int]func() Question + var TypeToRR = map[uint16]func() RR + var TypeToString = map[uint16]string + func PackRR(rr RR, buff *bytes.Buffer) (int, error) + func UnpackDomainName(msg []byte, off int) (string, int, error) + type A struct + A net.IP + Hdr RR_Header + func (rr *A) Copy() RR + func (rr *A) GetData() []byte + func (rr *A) Header() *RR_Header + func (rr *A) PackData(buff *bytes.Buffer) (int, error) + func (rr *A) String() string + func (rr *A) UnPackData(msg []byte, off int) (int, error) + type AAAA struct + AAAA net.IP + Hdr RR_Header + func (rr *AAAA) Copy() RR + func (rr *AAAA) GetData() []byte + func (rr *AAAA) Header() *RR_Header + func (rr *AAAA) PackData(buff *bytes.Buffer) (int, error) + func (rr *AAAA) String() string + func (rr *AAAA) UnPackData(msg []byte, off int) (int, error) + type BaseEDNSData struct + Code uint16 + OptionData []byte + func (b *BaseEDNSData) Option() uint16 + func (b *BaseEDNSData) PackData() ([]byte, error) + func (b *BaseEDNSData) UnpackData(data []byte) error + type BasePolarisQuestion struct + Name string + Qclass uint16 + Qtype uint16 + func (q *BasePolarisQuestion) String() (s string) + type Class uint16 + func (c Class) String() string + type DNSQuestion struct + Name string + Qclass uint16 + Qtype uint16 + func (q *DNSQuestion) String() (s string) + type DetailErrInfoRR struct + ErrInfo *sidecarPb.DetailErrInfo + Hdr RR_Header + func (rr *DetailErrInfoRR) GetData() []byte + func (rr *DetailErrInfoRR) Header() *RR_Header + func (rr *DetailErrInfoRR) PackData(buff *bytes.Buffer) (int, error) + func (rr *DetailErrInfoRR) UnPackData(msg []byte, off int) (int, error) + type EDNS0 interface + Option func() uint16 + PackData func() ([]byte, error) + UnpackData func([]byte) error + type EDNSDataCommon struct + OptionCode uint16 + OptionLength uint16 + func (d *EDNSDataCommon) Option() uint16 + func (d *EDNSDataCommon) Pack(buff *bytes.Buffer) error + func (d *EDNSDataCommon) Unpack(msg []byte, offset int) (int, error) + type Error struct + func (e *Error) Error() string + type LocationRR struct + Hdr RR_Header + SideCar *namingpb.Client + func (rr *LocationRR) Header() *RR_Header + func (rr *LocationRR) PackData(buff *bytes.Buffer) (int, error) + func (rr *LocationRR) UnPackData(msg []byte, off int) (int, error) + type Msg struct + Answer []RR + Extra []RR + Ns []RR + Question []Question + func PackStreamDataToDnsProto(data []byte, id uint16, opCode int, rrType uint16) ([]*Msg, error) + func (dns *Msg) GetDetailErrRR() *DetailErrInfoRR + func (dns *Msg) GetPackControlRR() *PackageCtrlRR + func (dns *Msg) Pack() (*bytes.Buffer, error) + func (dns *Msg) SetDNSQuestion(z string, t uint16) *Msg + func (dns *Msg) SetReply(request *Msg) + func (dns *Msg) SetReplyWithoutQuestions(request *Msg) + func (dns *Msg) Unpack(msg []byte) (err error) + func (dns *Msg) UnpackBody(msg []byte, off int) (err error) + type MsgHdr struct + Ancount uint16 + Arcount uint16 + AuthenticatedData bool + Authoritative bool + CheckingDisabled bool + Id uint16 + Nscount uint16 + Opcode int + Qdcount uint16 + Rcode int + RecursionAvailable bool + RecursionDesired bool + Response bool + Truncated bool + Zero bool + func (h *MsgHdr) Copy(dst *MsgHdr) error + func (h *MsgHdr) Pack(buff *bytes.Buffer) (int, error) + func (h *MsgHdr) SetDefaultValue(id uint16, opCode int) + func (h *MsgHdr) String() string + func (h *MsgHdr) Unpack(msg []byte) (int, error) + type Name string + type OPT struct + Hdr RR_Header + Option []EDNS0 + func (o *OPT) GetData() []byte + func (o *OPT) Header() *RR_Header + func (o *OPT) PackData(buff *bytes.Buffer) (int, error) + func (o *OPT) UnPackData(msg []byte, off int) (int, error) + type PackageCtrlRR struct + Hdr RR_Header + PackageIndex uint16 + SplitMode uint8 + TotalCount uint16 + func (rr *PackageCtrlRR) Copy() RR + func (rr *PackageCtrlRR) GetData() []byte + func (rr *PackageCtrlRR) Header() *RR_Header + func (rr *PackageCtrlRR) PackData(buff *bytes.Buffer) (int, error) + func (rr *PackageCtrlRR) String() string + func (rr *PackageCtrlRR) UnPackData(msg []byte, off int) (int, error) + type PolarisGetResourceQuestion struct + Req *v1.DiscoverRequest + type PolarisHeaderRR struct + Hdr RR_Header + func (rr *PolarisHeaderRR) GetData() []byte + func (rr *PolarisHeaderRR) Header() *RR_Header + func (rr *PolarisHeaderRR) PackData(buff *bytes.Buffer) (int, error) + func (rr *PolarisHeaderRR) UnPackData(msg []byte, off int) (int, error) + type PolarisInstanceQuestion struct + Req *v1.Instance + type PolarisReportClientQuestion struct + Req *v1.Client + type Question interface + String func() string + type RR interface + GetData func() []byte + Header func() *RR_Header + PackData func(buff *bytes.Buffer) (int, error) + UnPackData func(msg []byte, off int) (int, error) + func NewAAAARR(name string, ip net.IP, ttl uint32) RR + func NewARR(name string, ip net.IP, ttl uint32) RR + func UnpackRR(msg []byte, off int) (RR, int, error) + func UnpackRRWithRRHeader(h RR_Header, msg []byte, off int) (RR, int, error) + type RR_Header struct + Class uint16 + Name string + Rdlength uint16 + Rrtype uint16 + Ttl uint32 + func (h *RR_Header) Header() *RR_Header + func (h *RR_Header) String() string + type ResponseRR struct + Hdr RR_Header + Response *namingpb.Response + func (rr *ResponseRR) GetData() []byte + func (rr *ResponseRR) Header() *RR_Header + func (rr *ResponseRR) PackData(buff *bytes.Buffer) (int, error) + func (rr *ResponseRR) UnPackData(msg []byte, off int) (int, error) + type SRV struct + Hdr RR_Header + Port uint16 + Priority uint16 + Target string + Weight uint16 + type StreamRR struct + Bytes []byte + Hdr RR_Header + func (rr *StreamRR) GetData() []byte + func (rr *StreamRR) Header() *RR_Header + func (rr *StreamRR) PackData(buff *bytes.Buffer) (int, error) + func (rr *StreamRR) UnPackData(msg []byte, off int) (int, error) + type Type uint16 + func (t Type) String() string v0 v0.9.0 Jul 21, 2021