proto

package
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: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerConf_Type_name = map[int32]string{
		0: "ECHO",
		1: "DISCARD",
	}
	ServerConf_Type_value = map[string]int32{
		"ECHO":    0,
		"DISCARD": 1,
	}
)

Enum value maps for ServerConf_Type.

View Source
var File_github_com_google_cloudprober_servers_udp_proto_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ServerConf

type ServerConf struct {
	Port *int32           `protobuf:"varint,1,req,name=port" json:"port,omitempty"`
	Type *ServerConf_Type `protobuf:"varint,2,req,name=type,enum=cloudprober.servers.udp.ServerConf_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerConf) Descriptor deprecated

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

Deprecated: Use ServerConf.ProtoReflect.Descriptor instead.

func (*ServerConf) GetPort

func (x *ServerConf) GetPort() int32

func (*ServerConf) GetType

func (x *ServerConf) GetType() ServerConf_Type

func (*ServerConf) ProtoMessage

func (*ServerConf) ProtoMessage()

func (*ServerConf) ProtoReflect added in v0.10.8

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

func (*ServerConf) Reset

func (x *ServerConf) Reset()

func (*ServerConf) String

func (x *ServerConf) String() string

type ServerConf_Type

type ServerConf_Type int32
const (
	// Echos the incoming packet back.
	// Note that UDP echo server limits reads to 4098 bytes. For messages longer
	// than 4098 bytes it won't work as expected.
	ServerConf_ECHO ServerConf_Type = 0
	// Discard the incoming packet. Return nothing.
	ServerConf_DISCARD ServerConf_Type = 1
)

func (ServerConf_Type) Descriptor added in v0.10.8

func (ServerConf_Type) Enum

func (x ServerConf_Type) Enum() *ServerConf_Type

func (ServerConf_Type) EnumDescriptor deprecated

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

Deprecated: Use ServerConf_Type.Descriptor instead.

func (ServerConf_Type) Number added in v0.10.8

func (ServerConf_Type) String

func (x ServerConf_Type) String() string

func (ServerConf_Type) Type added in v0.10.8

func (*ServerConf_Type) UnmarshalJSON deprecated

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

Deprecated: Do not use.

Jump to

Keyboard shortcuts

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