Documentation ¶
Index ¶
- Variables
- type Poller
- func (*Poller) Descriptor() ([]byte, []int)deprecated
- func (x *Poller) GetAppendHeaders() []*Poller_SourceHeader
- func (x *Poller) GetReceiverServiceName() string
- func (x *Poller) GetRequestTimeout() int32
- func (x *Poller) GetResponseTimeout() int32
- func (*Poller) ProtoMessage()
- func (x *Poller) ProtoReflect() protoreflect.Message
- func (x *Poller) Reset()
- func (x *Poller) String() string
- func (m *Poller) Validate() error
- func (m *Poller) ValidateAll() error
- type PollerMultiError
- type PollerValidationError
- type Poller_HeaderEntry
- func (*Poller_HeaderEntry) Descriptor() ([]byte, []int)deprecated
- func (x *Poller_HeaderEntry) GetKey() string
- func (x *Poller_HeaderEntry) GetValue() string
- func (*Poller_HeaderEntry) ProtoMessage()
- func (x *Poller_HeaderEntry) ProtoReflect() protoreflect.Message
- func (x *Poller_HeaderEntry) Reset()
- func (x *Poller_HeaderEntry) String() string
- func (m *Poller_HeaderEntry) Validate() error
- func (m *Poller_HeaderEntry) ValidateAll() error
- type Poller_HeaderEntryMultiError
- type Poller_HeaderEntryValidationError
- func (e Poller_HeaderEntryValidationError) Cause() error
- func (e Poller_HeaderEntryValidationError) Error() string
- func (e Poller_HeaderEntryValidationError) ErrorName() string
- func (e Poller_HeaderEntryValidationError) Field() string
- func (e Poller_HeaderEntryValidationError) Key() bool
- func (e Poller_HeaderEntryValidationError) Reason() string
- type Poller_SourceHeader
- func (*Poller_SourceHeader) Descriptor() ([]byte, []int)deprecated
- func (x *Poller_SourceHeader) GetHeaders() []*Poller_HeaderEntry
- func (x *Poller_SourceHeader) GetSource() string
- func (*Poller_SourceHeader) ProtoMessage()
- func (x *Poller_SourceHeader) ProtoReflect() protoreflect.Message
- func (x *Poller_SourceHeader) Reset()
- func (x *Poller_SourceHeader) String() string
- func (m *Poller_SourceHeader) Validate() error
- func (m *Poller_SourceHeader) ValidateAll() error
- type Poller_SourceHeaderMultiError
- type Poller_SourceHeaderValidationError
- func (e Poller_SourceHeaderValidationError) Cause() error
- func (e Poller_SourceHeaderValidationError) Error() string
- func (e Poller_SourceHeaderValidationError) ErrorName() string
- func (e Poller_SourceHeaderValidationError) Field() string
- func (e Poller_SourceHeaderValidationError) Key() bool
- func (e Poller_SourceHeaderValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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) GetAppendHeaders ¶
func (x *Poller) GetAppendHeaders() []*Poller_SourceHeader
func (*Poller) GetReceiverServiceName ¶
func (*Poller) GetRequestTimeout ¶
func (*Poller) GetResponseTimeout ¶
func (*Poller) ProtoMessage ¶
func (*Poller) ProtoMessage()
func (*Poller) ProtoReflect ¶
func (x *Poller) ProtoReflect() protoreflect.Message
func (*Poller) Validate ¶
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 ¶
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 ¶
func (m Poller_HeaderEntryMultiError) Error() string
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 ¶
func (e Poller_HeaderEntryValidationError) Cause() error
Cause function returns cause value.
func (Poller_HeaderEntryValidationError) Error ¶
func (e Poller_HeaderEntryValidationError) Error() string
Error satisfies the builtin error interface
func (Poller_HeaderEntryValidationError) ErrorName ¶
func (e Poller_HeaderEntryValidationError) ErrorName() string
ErrorName returns error name.
func (Poller_HeaderEntryValidationError) Field ¶
func (e Poller_HeaderEntryValidationError) Field() string
Field function returns field value.
func (Poller_HeaderEntryValidationError) Key ¶
func (e Poller_HeaderEntryValidationError) Key() bool
Key function returns key value.
func (Poller_HeaderEntryValidationError) Reason ¶
func (e Poller_HeaderEntryValidationError) Reason() string
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 ¶
func (m Poller_SourceHeaderMultiError) Error() string
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 ¶
func (e Poller_SourceHeaderValidationError) Cause() error
Cause function returns cause value.
func (Poller_SourceHeaderValidationError) Error ¶
func (e Poller_SourceHeaderValidationError) Error() string
Error satisfies the builtin error interface
func (Poller_SourceHeaderValidationError) ErrorName ¶
func (e Poller_SourceHeaderValidationError) ErrorName() string
ErrorName returns error name.
func (Poller_SourceHeaderValidationError) Field ¶
func (e Poller_SourceHeaderValidationError) Field() string
Field function returns field value.
func (Poller_SourceHeaderValidationError) Key ¶
func (e Poller_SourceHeaderValidationError) Key() bool
Key function returns key value.
func (Poller_SourceHeaderValidationError) Reason ¶
func (e Poller_SourceHeaderValidationError) Reason() string
Reason function returns reason value.