proto

package
Version: v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const (
	Default_ProbeConf_Port            = int32(32212)
	Default_ProbeConf_PacketsPerProbe = int32(1)
)

Default values for ProbeConf fields.

Variables

View Source
var (
	ProbeConf_Type_name = map[int32]string{
		0: "INVALID",
		1: "ECHO",
		2: "DISCARD",
	}
	ProbeConf_Type_value = map[string]int32{
		"INVALID": 0,
		"ECHO":    1,
		"DISCARD": 2,
	}
)

Enum value maps for ProbeConf_Type.

View Source
var File_github_com_google_cloudprober_probes_udplistener_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ProbeConf

type ProbeConf struct {

	// Port to listen.
	Port *int32          `protobuf:"varint,3,opt,name=port,def=32212" json:"port,omitempty"`
	Type *ProbeConf_Type `protobuf:"varint,4,opt,name=type,enum=cloudprober.probes.udplistener.ProbeConf_Type" json:"type,omitempty"`
	// Number of packets sent in a single probe.
	PacketsPerProbe *int32 `protobuf:"varint,5,opt,name=packets_per_probe,json=packetsPerProbe,def=1" json:"packets_per_probe,omitempty"`
	// contains filtered or unexported fields
}

func (*ProbeConf) Descriptor deprecated

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

Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead.

func (*ProbeConf) GetPacketsPerProbe

func (x *ProbeConf) GetPacketsPerProbe() int32

func (*ProbeConf) GetPort

func (x *ProbeConf) GetPort() int32

func (*ProbeConf) GetType

func (x *ProbeConf) GetType() ProbeConf_Type

func (*ProbeConf) ProtoMessage

func (*ProbeConf) ProtoMessage()

func (*ProbeConf) ProtoReflect added in v0.10.8

func (x *ProbeConf) ProtoReflect() protoreflect.Message

func (*ProbeConf) Reset

func (x *ProbeConf) Reset()

func (*ProbeConf) String

func (x *ProbeConf) String() string

type ProbeConf_Type

type ProbeConf_Type int32

Probe response to an incoming packet: echo back or discard.

const (
	ProbeConf_INVALID ProbeConf_Type = 0
	ProbeConf_ECHO    ProbeConf_Type = 1
	ProbeConf_DISCARD ProbeConf_Type = 2
)

func (ProbeConf_Type) Descriptor added in v0.10.8

func (ProbeConf_Type) Enum

func (x ProbeConf_Type) Enum() *ProbeConf_Type

func (ProbeConf_Type) EnumDescriptor deprecated

func (ProbeConf_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProbeConf_Type.Descriptor instead.

func (ProbeConf_Type) Number added in v0.10.8

func (ProbeConf_Type) String

func (x ProbeConf_Type) String() string

func (ProbeConf_Type) Type added in v0.10.8

func (*ProbeConf_Type) UnmarshalJSON deprecated

func (x *ProbeConf_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Source Files

Jump to

Keyboard shortcuts

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