v3

package
v0.0.0-...-6005464 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_poller_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Poller

type Poller struct {
	ReceiverServiceName string `protobuf:"bytes,1,opt,name=receiver_service_name,json=receiverServiceName,proto3" json:"receiver_service_name,omitempty"`
	RequestTimeout      int32  `protobuf:"varint,2,opt,name=request_timeout,json=requestTimeout,proto3" json:"request_timeout,omitempty"`
	ResponseTimeout     int32  `protobuf:"varint,3,opt,name=response_timeout,json=responseTimeout,proto3" json:"response_timeout,omitempty"`
	// as a reverse proxy, header decorator filter append specified entries to the request headers.
	// for example, you can assign a token for each source, and the upstream cluster use the token to
	// authorize requests
	AppendHeaders []*Poller_SourceHeader `protobuf:"bytes,4,rep,name=append_headers,json=appendHeaders,proto3" json:"append_headers,omitempty"`
	// contains filtered or unexported fields
}

func (*Poller) Descriptor deprecated

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

Deprecated: Use Poller.ProtoReflect.Descriptor instead.

func (*Poller) GetAppendHeaders

func (x *Poller) GetAppendHeaders() []*Poller_SourceHeader

func (*Poller) GetReceiverServiceName

func (x *Poller) GetReceiverServiceName() string

func (*Poller) GetRequestTimeout

func (x *Poller) GetRequestTimeout() int32

func (*Poller) GetResponseTimeout

func (x *Poller) GetResponseTimeout() int32

func (*Poller) ProtoMessage

func (*Poller) ProtoMessage()

func (*Poller) ProtoReflect

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

func (*Poller) Reset

func (x *Poller) Reset()

func (*Poller) String

func (x *Poller) String() string

func (*Poller) Validate

func (m *Poller) Validate() error

Validate checks the field values on Poller 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 (*Poller) ValidateAll

func (m *Poller) ValidateAll() error

ValidateAll checks the field values on Poller 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 PollerMultiError, or nil if none found.

type PollerMultiError

type PollerMultiError []error

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

func (PollerMultiError) AllErrors

func (m PollerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PollerMultiError) Error

func (m PollerMultiError) Error() string

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

type PollerValidationError

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

PollerValidationError is the validation error returned by Poller.Validate if the designated constraints aren't met.

func (PollerValidationError) Cause

func (e PollerValidationError) Cause() error

Cause function returns cause value.

func (PollerValidationError) Error

func (e PollerValidationError) Error() string

Error satisfies the builtin error interface

func (PollerValidationError) ErrorName

func (e PollerValidationError) ErrorName() string

ErrorName returns error name.

func (PollerValidationError) Field

func (e PollerValidationError) Field() string

Field function returns field value.

func (PollerValidationError) Key

func (e PollerValidationError) Key() bool

Key function returns key value.

func (PollerValidationError) Reason

func (e PollerValidationError) Reason() string

Reason function returns reason value.

type Poller_HeaderEntry

type Poller_HeaderEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Poller_HeaderEntry) Descriptor deprecated

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

Deprecated: Use Poller_HeaderEntry.ProtoReflect.Descriptor instead.

func (*Poller_HeaderEntry) GetKey

func (x *Poller_HeaderEntry) GetKey() string

func (*Poller_HeaderEntry) GetValue

func (x *Poller_HeaderEntry) GetValue() string

func (*Poller_HeaderEntry) ProtoMessage

func (*Poller_HeaderEntry) ProtoMessage()

func (*Poller_HeaderEntry) ProtoReflect

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

func (*Poller_HeaderEntry) Reset

func (x *Poller_HeaderEntry) Reset()

func (*Poller_HeaderEntry) String

func (x *Poller_HeaderEntry) String() string

func (*Poller_HeaderEntry) Validate

func (m *Poller_HeaderEntry) Validate() error

Validate checks the field values on Poller_HeaderEntry 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 (*Poller_HeaderEntry) ValidateAll

func (m *Poller_HeaderEntry) ValidateAll() error

ValidateAll checks the field values on Poller_HeaderEntry 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 Poller_HeaderEntryMultiError, or nil if none found.

type Poller_HeaderEntryMultiError

type Poller_HeaderEntryMultiError []error

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

func (Poller_HeaderEntryMultiError) AllErrors

func (m Poller_HeaderEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Poller_HeaderEntryMultiError) Error

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

type Poller_HeaderEntryValidationError

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

Poller_HeaderEntryValidationError is the validation error returned by Poller_HeaderEntry.Validate if the designated constraints aren't met.

func (Poller_HeaderEntryValidationError) Cause

Cause function returns cause value.

func (Poller_HeaderEntryValidationError) Error

Error satisfies the builtin error interface

func (Poller_HeaderEntryValidationError) ErrorName

ErrorName returns error name.

func (Poller_HeaderEntryValidationError) Field

Field function returns field value.

func (Poller_HeaderEntryValidationError) Key

Key function returns key value.

func (Poller_HeaderEntryValidationError) Reason

Reason function returns reason value.

type Poller_SourceHeader

type Poller_SourceHeader struct {
	Source  string                `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Headers []*Poller_HeaderEntry `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

func (*Poller_SourceHeader) Descriptor deprecated

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

Deprecated: Use Poller_SourceHeader.ProtoReflect.Descriptor instead.

func (*Poller_SourceHeader) GetHeaders

func (x *Poller_SourceHeader) GetHeaders() []*Poller_HeaderEntry

func (*Poller_SourceHeader) GetSource

func (x *Poller_SourceHeader) GetSource() string

func (*Poller_SourceHeader) ProtoMessage

func (*Poller_SourceHeader) ProtoMessage()

func (*Poller_SourceHeader) ProtoReflect

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

func (*Poller_SourceHeader) Reset

func (x *Poller_SourceHeader) Reset()

func (*Poller_SourceHeader) String

func (x *Poller_SourceHeader) String() string

func (*Poller_SourceHeader) Validate

func (m *Poller_SourceHeader) Validate() error

Validate checks the field values on Poller_SourceHeader 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 (*Poller_SourceHeader) ValidateAll

func (m *Poller_SourceHeader) ValidateAll() error

ValidateAll checks the field values on Poller_SourceHeader 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 Poller_SourceHeaderMultiError, or nil if none found.

type Poller_SourceHeaderMultiError

type Poller_SourceHeaderMultiError []error

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

func (Poller_SourceHeaderMultiError) AllErrors

func (m Poller_SourceHeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Poller_SourceHeaderMultiError) Error

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

type Poller_SourceHeaderValidationError

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

Poller_SourceHeaderValidationError is the validation error returned by Poller_SourceHeader.Validate if the designated constraints aren't met.

func (Poller_SourceHeaderValidationError) Cause

Cause function returns cause value.

func (Poller_SourceHeaderValidationError) Error

Error satisfies the builtin error interface

func (Poller_SourceHeaderValidationError) ErrorName

ErrorName returns error name.

func (Poller_SourceHeaderValidationError) Field

Field function returns field value.

func (Poller_SourceHeaderValidationError) Key

Key function returns key value.

func (Poller_SourceHeaderValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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