Documentation ¶
Index ¶
- Variables
- type Receiver
- func (*Receiver) Descriptor() ([]byte, []int)deprecated
- func (x *Receiver) GetRules() []*ReceiverRule
- func (x *Receiver) GetSelfNamespace() string
- func (*Receiver) ProtoMessage()
- func (x *Receiver) ProtoReflect() protoreflect.Message
- func (x *Receiver) Reset()
- func (x *Receiver) String() string
- func (m *Receiver) Validate() error
- func (m *Receiver) ValidateAll() error
- type ReceiverMultiError
- type ReceiverRule
- func (*ReceiverRule) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiverRule) GetDestination() string
- func (x *ReceiverRule) GetSource() string
- func (x *ReceiverRule) GetSvc() string
- func (*ReceiverRule) ProtoMessage()
- func (x *ReceiverRule) ProtoReflect() protoreflect.Message
- func (x *ReceiverRule) Reset()
- func (x *ReceiverRule) String() string
- func (m *ReceiverRule) Validate() error
- func (m *ReceiverRule) ValidateAll() error
- type ReceiverRuleMultiError
- type ReceiverRuleValidationError
- func (e ReceiverRuleValidationError) Cause() error
- func (e ReceiverRuleValidationError) Error() string
- func (e ReceiverRuleValidationError) ErrorName() string
- func (e ReceiverRuleValidationError) Field() string
- func (e ReceiverRuleValidationError) Key() bool
- func (e ReceiverRuleValidationError) Reason() string
- type ReceiverValidationError
- type RequestMessage
- func (*RequestMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RequestMessage) GetBody() []byte
- func (x *RequestMessage) GetHeaders() map[string]string
- func (x *RequestMessage) GetHost() string
- func (x *RequestMessage) GetId() string
- func (x *RequestMessage) GetMethod() string
- func (x *RequestMessage) GetPath() string
- func (*RequestMessage) ProtoMessage()
- func (x *RequestMessage) ProtoReflect() protoreflect.Message
- func (x *RequestMessage) Reset()
- func (x *RequestMessage) String() string
- func (m *RequestMessage) Validate() error
- func (m *RequestMessage) ValidateAll() error
- type RequestMessageMultiError
- type RequestMessageValidationError
- func (e RequestMessageValidationError) Cause() error
- func (e RequestMessageValidationError) Error() string
- func (e RequestMessageValidationError) ErrorName() string
- func (e RequestMessageValidationError) Field() string
- func (e RequestMessageValidationError) Key() bool
- func (e RequestMessageValidationError) Reason() string
- type ResponseMessage
- func (*ResponseMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseMessage) GetBody() []byte
- func (x *ResponseMessage) GetHeaders() map[string]string
- func (x *ResponseMessage) GetStatusCode() int32
- func (*ResponseMessage) ProtoMessage()
- func (x *ResponseMessage) ProtoReflect() protoreflect.Message
- func (x *ResponseMessage) Reset()
- func (x *ResponseMessage) String() string
- func (m *ResponseMessage) Validate() error
- func (m *ResponseMessage) ValidateAll() error
- type ResponseMessageMultiError
- type ResponseMessageValidationError
- func (e ResponseMessageValidationError) Cause() error
- func (e ResponseMessageValidationError) Error() string
- func (e ResponseMessageValidationError) ErrorName() string
- func (e ResponseMessageValidationError) Field() string
- func (e ResponseMessageValidationError) Key() bool
- func (e ResponseMessageValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_message_proto protoreflect.FileDescriptor
var File_receiver_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver struct { SelfNamespace string `protobuf:"bytes,1,opt,name=self_namespace,json=selfNamespace,proto3" json:"self_namespace,omitempty"` Rules []*ReceiverRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` // contains filtered or unexported fields }
func (*Receiver) Descriptor
deprecated
func (*Receiver) GetRules ¶
func (x *Receiver) GetRules() []*ReceiverRule
func (*Receiver) GetSelfNamespace ¶
func (*Receiver) ProtoMessage ¶
func (*Receiver) ProtoMessage()
func (*Receiver) ProtoReflect ¶
func (x *Receiver) ProtoReflect() protoreflect.Message
func (*Receiver) Validate ¶
Validate checks the field values on Receiver 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 (*Receiver) ValidateAll ¶
ValidateAll checks the field values on Receiver 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 ReceiverMultiError, or nil if none found.
type ReceiverMultiError ¶
type ReceiverMultiError []error
ReceiverMultiError is an error wrapping multiple validation errors returned by Receiver.ValidateAll() if the designated constraints aren't met.
func (ReceiverMultiError) AllErrors ¶
func (m ReceiverMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReceiverMultiError) Error ¶
func (m ReceiverMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReceiverRule ¶
type ReceiverRule struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` Svc string `protobuf:"bytes,3,opt,name=svc,proto3" json:"svc,omitempty"` // contains filtered or unexported fields }
func (*ReceiverRule) Descriptor
deprecated
func (*ReceiverRule) Descriptor() ([]byte, []int)
Deprecated: Use ReceiverRule.ProtoReflect.Descriptor instead.
func (*ReceiverRule) GetDestination ¶
func (x *ReceiverRule) GetDestination() string
func (*ReceiverRule) GetSource ¶
func (x *ReceiverRule) GetSource() string
func (*ReceiverRule) GetSvc ¶
func (x *ReceiverRule) GetSvc() string
func (*ReceiverRule) ProtoMessage ¶
func (*ReceiverRule) ProtoMessage()
func (*ReceiverRule) ProtoReflect ¶
func (x *ReceiverRule) ProtoReflect() protoreflect.Message
func (*ReceiverRule) Reset ¶
func (x *ReceiverRule) Reset()
func (*ReceiverRule) String ¶
func (x *ReceiverRule) String() string
func (*ReceiverRule) Validate ¶
func (m *ReceiverRule) Validate() error
Validate checks the field values on ReceiverRule 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 (*ReceiverRule) ValidateAll ¶
func (m *ReceiverRule) ValidateAll() error
ValidateAll checks the field values on ReceiverRule 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 ReceiverRuleMultiError, or nil if none found.
type ReceiverRuleMultiError ¶
type ReceiverRuleMultiError []error
ReceiverRuleMultiError is an error wrapping multiple validation errors returned by ReceiverRule.ValidateAll() if the designated constraints aren't met.
func (ReceiverRuleMultiError) AllErrors ¶
func (m ReceiverRuleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReceiverRuleMultiError) Error ¶
func (m ReceiverRuleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReceiverRuleValidationError ¶
type ReceiverRuleValidationError struct {
// contains filtered or unexported fields
}
ReceiverRuleValidationError is the validation error returned by ReceiverRule.Validate if the designated constraints aren't met.
func (ReceiverRuleValidationError) Cause ¶
func (e ReceiverRuleValidationError) Cause() error
Cause function returns cause value.
func (ReceiverRuleValidationError) Error ¶
func (e ReceiverRuleValidationError) Error() string
Error satisfies the builtin error interface
func (ReceiverRuleValidationError) ErrorName ¶
func (e ReceiverRuleValidationError) ErrorName() string
ErrorName returns error name.
func (ReceiverRuleValidationError) Field ¶
func (e ReceiverRuleValidationError) Field() string
Field function returns field value.
func (ReceiverRuleValidationError) Key ¶
func (e ReceiverRuleValidationError) Key() bool
Key function returns key value.
func (ReceiverRuleValidationError) Reason ¶
func (e ReceiverRuleValidationError) Reason() string
Reason function returns reason value.
type ReceiverValidationError ¶
type ReceiverValidationError struct {
// contains filtered or unexported fields
}
ReceiverValidationError is the validation error returned by Receiver.Validate if the designated constraints aren't met.
func (ReceiverValidationError) Cause ¶
func (e ReceiverValidationError) Cause() error
Cause function returns cause value.
func (ReceiverValidationError) Error ¶
func (e ReceiverValidationError) Error() string
Error satisfies the builtin error interface
func (ReceiverValidationError) ErrorName ¶
func (e ReceiverValidationError) ErrorName() string
ErrorName returns error name.
func (ReceiverValidationError) Field ¶
func (e ReceiverValidationError) Field() string
Field function returns field value.
func (ReceiverValidationError) Key ¶
func (e ReceiverValidationError) Key() bool
Key function returns key value.
func (ReceiverValidationError) Reason ¶
func (e ReceiverValidationError) Reason() string
Reason function returns reason value.
type RequestMessage ¶
type RequestMessage struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ Body []byte `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*RequestMessage) Descriptor
deprecated
func (*RequestMessage) Descriptor() ([]byte, []int)
Deprecated: Use RequestMessage.ProtoReflect.Descriptor instead.
func (*RequestMessage) GetBody ¶
func (x *RequestMessage) GetBody() []byte
func (*RequestMessage) GetHeaders ¶
func (x *RequestMessage) GetHeaders() map[string]string
func (*RequestMessage) GetHost ¶
func (x *RequestMessage) GetHost() string
func (*RequestMessage) GetId ¶
func (x *RequestMessage) GetId() string
func (*RequestMessage) GetMethod ¶
func (x *RequestMessage) GetMethod() string
func (*RequestMessage) GetPath ¶
func (x *RequestMessage) GetPath() string
func (*RequestMessage) ProtoMessage ¶
func (*RequestMessage) ProtoMessage()
func (*RequestMessage) ProtoReflect ¶
func (x *RequestMessage) ProtoReflect() protoreflect.Message
func (*RequestMessage) Reset ¶
func (x *RequestMessage) Reset()
func (*RequestMessage) String ¶
func (x *RequestMessage) String() string
func (*RequestMessage) Validate ¶
func (m *RequestMessage) Validate() error
Validate checks the field values on RequestMessage 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 (*RequestMessage) ValidateAll ¶
func (m *RequestMessage) ValidateAll() error
ValidateAll checks the field values on RequestMessage 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 RequestMessageMultiError, or nil if none found.
type RequestMessageMultiError ¶
type RequestMessageMultiError []error
RequestMessageMultiError is an error wrapping multiple validation errors returned by RequestMessage.ValidateAll() if the designated constraints aren't met.
func (RequestMessageMultiError) AllErrors ¶
func (m RequestMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RequestMessageMultiError) Error ¶
func (m RequestMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RequestMessageValidationError ¶
type RequestMessageValidationError struct {
// contains filtered or unexported fields
}
RequestMessageValidationError is the validation error returned by RequestMessage.Validate if the designated constraints aren't met.
func (RequestMessageValidationError) Cause ¶
func (e RequestMessageValidationError) Cause() error
Cause function returns cause value.
func (RequestMessageValidationError) Error ¶
func (e RequestMessageValidationError) Error() string
Error satisfies the builtin error interface
func (RequestMessageValidationError) ErrorName ¶
func (e RequestMessageValidationError) ErrorName() string
ErrorName returns error name.
func (RequestMessageValidationError) Field ¶
func (e RequestMessageValidationError) Field() string
Field function returns field value.
func (RequestMessageValidationError) Key ¶
func (e RequestMessageValidationError) Key() bool
Key function returns key value.
func (RequestMessageValidationError) Reason ¶
func (e RequestMessageValidationError) Reason() string
Reason function returns reason value.
type ResponseMessage ¶
type ResponseMessage struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*ResponseMessage) Descriptor
deprecated
func (*ResponseMessage) Descriptor() ([]byte, []int)
Deprecated: Use ResponseMessage.ProtoReflect.Descriptor instead.
func (*ResponseMessage) GetBody ¶
func (x *ResponseMessage) GetBody() []byte
func (*ResponseMessage) GetHeaders ¶
func (x *ResponseMessage) GetHeaders() map[string]string
func (*ResponseMessage) GetStatusCode ¶
func (x *ResponseMessage) GetStatusCode() int32
func (*ResponseMessage) ProtoMessage ¶
func (*ResponseMessage) ProtoMessage()
func (*ResponseMessage) ProtoReflect ¶
func (x *ResponseMessage) ProtoReflect() protoreflect.Message
func (*ResponseMessage) Reset ¶
func (x *ResponseMessage) Reset()
func (*ResponseMessage) String ¶
func (x *ResponseMessage) String() string
func (*ResponseMessage) Validate ¶
func (m *ResponseMessage) Validate() error
Validate checks the field values on ResponseMessage 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 (*ResponseMessage) ValidateAll ¶
func (m *ResponseMessage) ValidateAll() error
ValidateAll checks the field values on ResponseMessage 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 ResponseMessageMultiError, or nil if none found.
type ResponseMessageMultiError ¶
type ResponseMessageMultiError []error
ResponseMessageMultiError is an error wrapping multiple validation errors returned by ResponseMessage.ValidateAll() if the designated constraints aren't met.
func (ResponseMessageMultiError) AllErrors ¶
func (m ResponseMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseMessageMultiError) Error ¶
func (m ResponseMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseMessageValidationError ¶
type ResponseMessageValidationError struct {
// contains filtered or unexported fields
}
ResponseMessageValidationError is the validation error returned by ResponseMessage.Validate if the designated constraints aren't met.
func (ResponseMessageValidationError) Cause ¶
func (e ResponseMessageValidationError) Cause() error
Cause function returns cause value.
func (ResponseMessageValidationError) Error ¶
func (e ResponseMessageValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseMessageValidationError) ErrorName ¶
func (e ResponseMessageValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseMessageValidationError) Field ¶
func (e ResponseMessageValidationError) Field() string
Field function returns field value.
func (ResponseMessageValidationError) Key ¶
func (e ResponseMessageValidationError) Key() bool
Key function returns key value.
func (ResponseMessageValidationError) Reason ¶
func (e ResponseMessageValidationError) Reason() string
Reason function returns reason value.