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_message_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Receiver.ProtoReflect.Descriptor instead.

func (*Receiver) GetRules

func (x *Receiver) GetRules() []*ReceiverRule

func (*Receiver) GetSelfNamespace

func (x *Receiver) GetSelfNamespace() string

func (*Receiver) ProtoMessage

func (*Receiver) ProtoMessage()

func (*Receiver) ProtoReflect

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

func (*Receiver) Reset

func (x *Receiver) Reset()

func (*Receiver) String

func (x *Receiver) String() string

func (*Receiver) Validate

func (m *Receiver) Validate() error

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

func (m *Receiver) ValidateAll() error

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

Cause function returns cause value.

func (ReceiverRuleValidationError) Error

Error satisfies the builtin error interface

func (ReceiverRuleValidationError) ErrorName

func (e ReceiverRuleValidationError) ErrorName() string

ErrorName returns error name.

func (ReceiverRuleValidationError) Field

Field function returns field value.

func (ReceiverRuleValidationError) Key

Key function returns key value.

func (ReceiverRuleValidationError) Reason

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

Cause function returns cause value.

func (RequestMessageValidationError) Error

Error satisfies the builtin error interface

func (RequestMessageValidationError) ErrorName

func (e RequestMessageValidationError) ErrorName() string

ErrorName returns error name.

func (RequestMessageValidationError) Field

Field function returns field value.

func (RequestMessageValidationError) Key

Key function returns key value.

func (RequestMessageValidationError) Reason

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

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

Cause function returns cause value.

func (ResponseMessageValidationError) Error

Error satisfies the builtin error interface

func (ResponseMessageValidationError) ErrorName

func (e ResponseMessageValidationError) ErrorName() string

ErrorName returns error name.

func (ResponseMessageValidationError) Field

Field function returns field value.

func (ResponseMessageValidationError) Key

Key function returns key value.

func (ResponseMessageValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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