cloudprober: Index | Files

package proto

import ""


Package Files



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

Default values for ProbeConf fields.


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.

var File_github_com_google_cloudprober_probes_udplistener_proto_config_proto protoreflect.FileDescriptor

type ProbeConf Uses

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 Uses

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

Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead.

func (*ProbeConf) GetPacketsPerProbe Uses

func (x *ProbeConf) GetPacketsPerProbe() int32

func (*ProbeConf) GetPort Uses

func (x *ProbeConf) GetPort() int32

func (*ProbeConf) GetType Uses

func (x *ProbeConf) GetType() ProbeConf_Type

func (*ProbeConf) ProtoMessage Uses

func (*ProbeConf) ProtoMessage()

func (*ProbeConf) ProtoReflect Uses

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

func (*ProbeConf) Reset Uses

func (x *ProbeConf) Reset()

func (*ProbeConf) String Uses

func (x *ProbeConf) String() string

type ProbeConf_Type Uses

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 Uses

func (ProbeConf_Type) Descriptor() protoreflect.EnumDescriptor

func (ProbeConf_Type) Enum Uses

func (x ProbeConf_Type) Enum() *ProbeConf_Type

func (ProbeConf_Type) EnumDescriptor Uses

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

Deprecated: Use ProbeConf_Type.Descriptor instead.

func (ProbeConf_Type) Number Uses

func (x ProbeConf_Type) Number() protoreflect.EnumNumber

func (ProbeConf_Type) String Uses

func (x ProbeConf_Type) String() string

func (ProbeConf_Type) Type Uses

func (ProbeConf_Type) Type() protoreflect.EnumType

func (*ProbeConf_Type) UnmarshalJSON Uses

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

Deprecated: Do not use.

Package proto imports 5 packages (graph) and is imported by 4 packages. Updated 2021-01-05. Refresh now. Tools for package owners.