Documentation ¶
Index ¶
- Constants
- Variables
- type ProbeConf
- func (*ProbeConf) Descriptor() ([]byte, []int)
- func (m *ProbeConf) GetMinAnswers() uint32
- func (m *ProbeConf) GetQueryType() QueryType
- func (m *ProbeConf) GetResolvedDomain() string
- func (m *ProbeConf) GetStatsExportIntervalMsec() int32
- func (*ProbeConf) ProtoMessage()
- func (m *ProbeConf) Reset()
- func (m *ProbeConf) String() string
- func (m *ProbeConf) XXX_DiscardUnknown()
- func (m *ProbeConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProbeConf) XXX_Merge(src proto.Message)
- func (m *ProbeConf) XXX_Size() int
- func (m *ProbeConf) XXX_Unmarshal(b []byte) error
- type QueryType
Constants ¶
View Source
const Default_ProbeConf_MinAnswers uint32 = 0
View Source
const Default_ProbeConf_ResolvedDomain string = "www.google.com."
View Source
const Default_ProbeConf_StatsExportIntervalMsec int32 = 10000
Variables ¶
View Source
var QueryType_name = map[int32]string{
0: "NONE",
1: "A",
2: "NS",
5: "CNAME",
6: "SOA",
12: "PTR",
15: "MX",
16: "TXT",
17: "RP",
18: "AFSDB",
24: "SIG",
25: "KEY",
28: "AAAA",
29: "LOC",
33: "SRV",
35: "NAPTR",
36: "KX",
37: "CERT",
39: "DNAME",
42: "APL",
43: "DS",
44: "SSHFP",
45: "IPSECKEY",
46: "RRSIG",
47: "NSEC",
48: "DNSKEY",
49: "DHCID",
50: "NSEC3",
51: "NSEC3PARAM",
52: "TLSA",
55: "HIP",
59: "CDS",
60: "CDNSKEY",
61: "OPENPGPKEY",
249: "TKEY",
250: "TSIG",
256: "URI",
257: "CAA",
32768: "TA",
32769: "DLV",
}
View Source
var QueryType_value = map[string]int32{
"NONE": 0,
"A": 1,
"NS": 2,
"CNAME": 5,
"SOA": 6,
"PTR": 12,
"MX": 15,
"TXT": 16,
"RP": 17,
"AFSDB": 18,
"SIG": 24,
"KEY": 25,
"AAAA": 28,
"LOC": 29,
"SRV": 33,
"NAPTR": 35,
"KX": 36,
"CERT": 37,
"DNAME": 39,
"APL": 42,
"DS": 43,
"SSHFP": 44,
"IPSECKEY": 45,
"RRSIG": 46,
"NSEC": 47,
"DNSKEY": 48,
"DHCID": 49,
"NSEC3": 50,
"NSEC3PARAM": 51,
"TLSA": 52,
"HIP": 55,
"CDS": 59,
"CDNSKEY": 60,
"OPENPGPKEY": 61,
"TKEY": 249,
"TSIG": 250,
"URI": 256,
"CAA": 257,
"TA": 32768,
"DLV": 32769,
}
Functions ¶
This section is empty.
Types ¶
type ProbeConf ¶
type ProbeConf struct { // Domain to use when making DNS queries ResolvedDomain *string `protobuf:"bytes,1,opt,name=resolved_domain,json=resolvedDomain,def=www.google.com." json:"resolved_domain,omitempty"` // Export stats after these many milliseconds StatsExportIntervalMsec *int32 `` /* 138-byte string literal not displayed */ // DNS Query Type QueryType *QueryType `` /* 127-byte string literal not displayed */ // Minimum number of answers expected. Default behavior is to return success // if DNS response status is NOERROR. MinAnswers *uint32 `protobuf:"varint,4,opt,name=min_answers,json=minAnswers,def=0" json:"min_answers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProbeConf) Descriptor ¶
func (*ProbeConf) GetMinAnswers ¶
func (*ProbeConf) GetQueryType ¶
func (*ProbeConf) GetResolvedDomain ¶
func (*ProbeConf) GetStatsExportIntervalMsec ¶
func (*ProbeConf) ProtoMessage ¶
func (*ProbeConf) ProtoMessage()
func (*ProbeConf) XXX_DiscardUnknown ¶
func (m *ProbeConf) XXX_DiscardUnknown()
func (*ProbeConf) XXX_Marshal ¶
func (*ProbeConf) XXX_Unmarshal ¶
type QueryType ¶
type QueryType int32
DNS query types from https://en.wikipedia.org/wiki/List_of_DNS_record_types
const ( QueryType_NONE QueryType = 0 QueryType_A QueryType = 1 QueryType_NS QueryType = 2 QueryType_CNAME QueryType = 5 QueryType_SOA QueryType = 6 QueryType_PTR QueryType = 12 QueryType_MX QueryType = 15 QueryType_TXT QueryType = 16 QueryType_RP QueryType = 17 QueryType_AFSDB QueryType = 18 QueryType_SIG QueryType = 24 QueryType_KEY QueryType = 25 QueryType_AAAA QueryType = 28 QueryType_LOC QueryType = 29 QueryType_SRV QueryType = 33 QueryType_NAPTR QueryType = 35 QueryType_KX QueryType = 36 QueryType_CERT QueryType = 37 QueryType_DNAME QueryType = 39 QueryType_APL QueryType = 42 QueryType_DS QueryType = 43 QueryType_SSHFP QueryType = 44 QueryType_IPSECKEY QueryType = 45 QueryType_RRSIG QueryType = 46 QueryType_NSEC QueryType = 47 QueryType_DNSKEY QueryType = 48 QueryType_DHCID QueryType = 49 QueryType_NSEC3 QueryType = 50 QueryType_NSEC3PARAM QueryType = 51 QueryType_TLSA QueryType = 52 QueryType_HIP QueryType = 55 QueryType_CDS QueryType = 59 QueryType_CDNSKEY QueryType = 60 QueryType_OPENPGPKEY QueryType = 61 QueryType_TKEY QueryType = 249 QueryType_TSIG QueryType = 250 QueryType_URI QueryType = 256 QueryType_CAA QueryType = 257 QueryType_TA QueryType = 32768 QueryType_DLV QueryType = 32769 )
const Default_ProbeConf_QueryType QueryType = QueryType_MX
func (QueryType) EnumDescriptor ¶
func (*QueryType) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.