proto

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Default_ProbeConf_DisableIntegrityCheck bool = false
View Source
const Default_ProbeConf_IpVersion int32 = 4
View Source
const Default_ProbeConf_PacketsIntervalMsec int32 = 25
View Source
const Default_ProbeConf_PacketsPerProbe int32 = 2
View Source
const Default_ProbeConf_PayloadSize int32 = 56
View Source
const Default_ProbeConf_ResolveTargetsInterval int32 = 5
View Source
const Default_ProbeConf_StatsExportInterval int32 = 5
View Source
const Default_ProbeConf_UseDatagramSocket bool = true

Variables

This section is empty.

Functions

This section is empty.

Types

type ProbeConf

type ProbeConf struct {
	// Set the source address to send packets from, either by providing an address
	// or a network interface.
	//
	// Types that are valid to be assigned to Source:
	//	*ProbeConf_SourceIp
	//	*ProbeConf_SourceInterface
	Source isProbeConf_Source `protobuf_oneof:"source"`
	// Packets per probe
	PacketsPerProbe *int32 `protobuf:"varint,6,opt,name=packets_per_probe,json=packetsPerProbe,def=2" json:"packets_per_probe,omitempty"`
	// How long to wait between two packets to the same target
	PacketsIntervalMsec *int32 `protobuf:"varint,7,opt,name=packets_interval_msec,json=packetsIntervalMsec,def=25" json:"packets_interval_msec,omitempty"`
	// Export stats after these many probes
	StatsExportInterval *int32 `protobuf:"varint,8,opt,name=stats_export_interval,json=statsExportInterval,def=5" json:"stats_export_interval,omitempty"`
	// Resolve targets after these many probes
	ResolveTargetsInterval *int32 `` /* 129-byte string literal not displayed */
	// Ping payload size in bytes. It cannot be smaller than 8, number of bytes
	// required for the nanoseconds timestamp.
	PayloadSize *int32 `protobuf:"varint,10,opt,name=payload_size,json=payloadSize,def=56" json:"payload_size,omitempty"`
	// IP protocol version
	IpVersion *int32 `protobuf:"varint,11,opt,name=ip_version,json=ipVersion,def=4" json:"ip_version,omitempty"`
	// Use datagram socket for ICMP.
	// This option enables unprivileged pings (that is, you don't require root
	// privilege to send ICMP packets). Note that most of the Linux distributions
	// don't allow unprivileged pings by default. To enable unprivileged pings on
	// some Linux distributions, you may need to run the following command:
	//     sudo sysctl -w net.ipv4.ping_group_range="0 <large valid group id>"
	// net.ipv4.ping_group_range system setting takes two integers that specify
	// the group id range that is allowed to execute the unprivileged pings. Note
	// that the same setting (with ipv4 in the path) applies to IPv6 as well.
	UseDatagramSocket *bool `protobuf:"varint,12,opt,name=use_datagram_socket,json=useDatagramSocket,def=1" json:"use_datagram_socket,omitempty"`
	// Disable integrity checks. To detect data courruption in the network, we
	// craft the outgoing ICMP packet payload in a certain format and verify that
	// the reply payload matches the same format.
	DisableIntegrityCheck *bool    `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
	XXX_unrecognized      []byte   `json:"-"`
	XXX_sizecache         int32    `json:"-"`
}

func (*ProbeConf) Descriptor

func (*ProbeConf) Descriptor() ([]byte, []int)

func (*ProbeConf) GetDisableIntegrityCheck

func (m *ProbeConf) GetDisableIntegrityCheck() bool

func (*ProbeConf) GetIpVersion

func (m *ProbeConf) GetIpVersion() int32

func (*ProbeConf) GetPacketsIntervalMsec

func (m *ProbeConf) GetPacketsIntervalMsec() int32

func (*ProbeConf) GetPacketsPerProbe

func (m *ProbeConf) GetPacketsPerProbe() int32

func (*ProbeConf) GetPayloadSize

func (m *ProbeConf) GetPayloadSize() int32

func (*ProbeConf) GetResolveTargetsInterval

func (m *ProbeConf) GetResolveTargetsInterval() int32

func (*ProbeConf) GetSource

func (m *ProbeConf) GetSource() isProbeConf_Source

func (*ProbeConf) GetSourceInterface

func (m *ProbeConf) GetSourceInterface() string

func (*ProbeConf) GetSourceIp

func (m *ProbeConf) GetSourceIp() string

func (*ProbeConf) GetStatsExportInterval

func (m *ProbeConf) GetStatsExportInterval() int32

func (*ProbeConf) GetUseDatagramSocket

func (m *ProbeConf) GetUseDatagramSocket() bool

func (*ProbeConf) ProtoMessage

func (*ProbeConf) ProtoMessage()

func (*ProbeConf) Reset

func (m *ProbeConf) Reset()

func (*ProbeConf) String

func (m *ProbeConf) String() string

func (*ProbeConf) XXX_DiscardUnknown

func (m *ProbeConf) XXX_DiscardUnknown()

func (*ProbeConf) XXX_Marshal

func (m *ProbeConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProbeConf) XXX_Merge

func (dst *ProbeConf) XXX_Merge(src proto.Message)

func (*ProbeConf) XXX_OneofFuncs

func (*ProbeConf) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ProbeConf) XXX_Size

func (m *ProbeConf) XXX_Size() int

func (*ProbeConf) XXX_Unmarshal

func (m *ProbeConf) XXX_Unmarshal(b []byte) error

type ProbeConf_SourceInterface

type ProbeConf_SourceInterface struct {
	SourceInterface string `protobuf:"bytes,4,opt,name=source_interface,json=sourceInterface,oneof"`
}

type ProbeConf_SourceIp

type ProbeConf_SourceIp struct {
	SourceIp string `protobuf:"bytes,3,opt,name=source_ip,json=sourceIp,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL