gsloctype

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CodecClientType_name = map[int32]string{
		0: "HTTP1",
		1: "HTTP2",
		2: "HTTP3",
	}
	CodecClientType_value = map[string]int32{
		"HTTP1": 0,
		"HTTP2": 1,
		"HTTP3": 2,
	}
)

Enum value maps for CodecClientType.

View Source
var File_gsloc_type_v1_http_proto protoreflect.FileDescriptor
View Source
var File_gsloc_type_v1_range_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CodecClientType

type CodecClientType int32
const (
	CodecClientType_HTTP1 CodecClientType = 0
	CodecClientType_HTTP2 CodecClientType = 1
	// [#not-implemented-hide:] QUIC implementation is not production ready yet. Use this enum with
	// caution to prevent accidental execution of QUIC code. I.e. `!= HTTP2` is no longer sufficient
	// to distinguish HTTP1 and HTTP2 traffic.
	CodecClientType_HTTP3 CodecClientType = 2
)

func (CodecClientType) Descriptor

func (CodecClientType) Enum

func (x CodecClientType) Enum() *CodecClientType

func (CodecClientType) EnumDescriptor deprecated

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

Deprecated: Use CodecClientType.Descriptor instead.

func (CodecClientType) Number

func (CodecClientType) String

func (x CodecClientType) String() string

func (CodecClientType) Type

type Int64Range

type Int64Range struct {

	// start of the range (inclusive)
	Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	// end of the range (exclusive)
	End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

Specifies the int64 start and end of the range using half-open interval semantics [start, end).

func (*Int64Range) Descriptor deprecated

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

Deprecated: Use Int64Range.ProtoReflect.Descriptor instead.

func (*Int64Range) GetEnd

func (x *Int64Range) GetEnd() int64

func (*Int64Range) GetStart

func (x *Int64Range) GetStart() int64

func (*Int64Range) ProtoMessage

func (*Int64Range) ProtoMessage()

func (*Int64Range) ProtoReflect

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

func (*Int64Range) Reset

func (x *Int64Range) Reset()

func (*Int64Range) String

func (x *Int64Range) String() string

func (*Int64Range) Validate

func (m *Int64Range) Validate() error

Validate checks the field values on Int64Range with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Int64Range) ValidateAll

func (m *Int64Range) ValidateAll() error

ValidateAll checks the field values on Int64Range with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Int64RangeMultiError, or nil if none found.

type Int64RangeMultiError

type Int64RangeMultiError []error

Int64RangeMultiError is an error wrapping multiple validation errors returned by Int64Range.ValidateAll() if the designated constraints aren't met.

func (Int64RangeMultiError) AllErrors

func (m Int64RangeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Int64RangeMultiError) Error

func (m Int64RangeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Int64RangeValidationError

type Int64RangeValidationError struct {
	// contains filtered or unexported fields
}

Int64RangeValidationError is the validation error returned by Int64Range.Validate if the designated constraints aren't met.

func (Int64RangeValidationError) Cause

func (e Int64RangeValidationError) Cause() error

Cause function returns cause value.

func (Int64RangeValidationError) Error

Error satisfies the builtin error interface

func (Int64RangeValidationError) ErrorName

func (e Int64RangeValidationError) ErrorName() string

ErrorName returns error name.

func (Int64RangeValidationError) Field

Field function returns field value.

func (Int64RangeValidationError) Key

Key function returns key value.

func (Int64RangeValidationError) Reason

func (e Int64RangeValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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