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_PacketsPerProbe int32 = 1
View Source
const Default_ProbeConf_Port int32 = 32212
View Source
const Default_ProbeConf_StatsExportIntervalMsec int32 = 10000

Variables

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

Functions

This section is empty.

Types

type ProbeConf

type ProbeConf struct {
	// Export stats after these many milliseconds
	StatsExportIntervalMsec *int32 `` /* 138-byte string literal not displayed */
	// 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ProbeConf) Descriptor

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

func (*ProbeConf) GetPacketsPerProbe

func (m *ProbeConf) GetPacketsPerProbe() int32

func (*ProbeConf) GetPort

func (m *ProbeConf) GetPort() int32

func (*ProbeConf) GetStatsExportIntervalMsec

func (m *ProbeConf) GetStatsExportIntervalMsec() int32

func (*ProbeConf) GetType

func (m *ProbeConf) GetType() ProbeConf_Type

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_Size

func (m *ProbeConf) XXX_Size() int

func (*ProbeConf) XXX_Unmarshal

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

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) Enum

func (x ProbeConf_Type) Enum() *ProbeConf_Type

func (ProbeConf_Type) EnumDescriptor

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

func (ProbeConf_Type) String

func (x ProbeConf_Type) String() string

func (*ProbeConf_Type) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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