Documentation
¶
Index ¶
- Variables
- type ConsumeRequest
- func (*ConsumeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConsumeRequest) GetCount() *Count
- func (x *ConsumeRequest) GetMessage() *Message
- func (*ConsumeRequest) ProtoMessage()
- func (x *ConsumeRequest) ProtoReflect() protoreflect.Message
- func (x *ConsumeRequest) Reset()
- func (x *ConsumeRequest) String() string
- func (m *ConsumeRequest) Validate() error
- func (m *ConsumeRequest) ValidateAll() error
- type ConsumeRequestMultiError
- type ConsumeRequestValidationError
- func (e ConsumeRequestValidationError) Cause() error
- func (e ConsumeRequestValidationError) Error() string
- func (e ConsumeRequestValidationError) ErrorName() string
- func (e ConsumeRequestValidationError) Field() string
- func (e ConsumeRequestValidationError) Key() bool
- func (e ConsumeRequestValidationError) Reason() string
- type ConsumeResponse
- func (*ConsumeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConsumeResponse) GetMessage() *Message
- func (*ConsumeResponse) ProtoMessage()
- func (x *ConsumeResponse) ProtoReflect() protoreflect.Message
- func (x *ConsumeResponse) Reset()
- func (x *ConsumeResponse) String() string
- func (m *ConsumeResponse) Validate() error
- func (m *ConsumeResponse) ValidateAll() error
- type ConsumeResponseMultiError
- type ConsumeResponseValidationError
- func (e ConsumeResponseValidationError) Cause() error
- func (e ConsumeResponseValidationError) Error() string
- func (e ConsumeResponseValidationError) ErrorName() string
- func (e ConsumeResponseValidationError) Field() string
- func (e ConsumeResponseValidationError) Key() bool
- func (e ConsumeResponseValidationError) Reason() string
- type Count
- func (*Count) Descriptor() ([]byte, []int)deprecated
- func (x *Count) GetNumber() uint64
- func (x *Count) GetPage() uint64
- func (*Count) ProtoMessage()
- func (x *Count) ProtoReflect() protoreflect.Message
- func (x *Count) Reset()
- func (x *Count) String() string
- func (m *Count) Validate() error
- func (m *Count) ValidateAll() error
- type CountMultiError
- type CountValidationError
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetCount() *Count
- func (x *Message) GetDomain() string
- func (x *Message) GetId() string
- func (x *Message) GetKind() *anypb.Any
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- func (m *Message) Validate() error
- func (m *Message) ValidateAll() error
- type MessageMultiError
- type MessageValidationError
- type ProduceRequest
- func (*ProduceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProduceRequest) GetMessage() *Message
- func (*ProduceRequest) ProtoMessage()
- func (x *ProduceRequest) ProtoReflect() protoreflect.Message
- func (x *ProduceRequest) Reset()
- func (x *ProduceRequest) String() string
- func (m *ProduceRequest) Validate() error
- func (m *ProduceRequest) ValidateAll() error
- type ProduceRequestMultiError
- type ProduceRequestValidationError
- func (e ProduceRequestValidationError) Cause() error
- func (e ProduceRequestValidationError) Error() string
- func (e ProduceRequestValidationError) ErrorName() string
- func (e ProduceRequestValidationError) Field() string
- func (e ProduceRequestValidationError) Key() bool
- func (e ProduceRequestValidationError) Reason() string
- type ProduceResponse
- func (*ProduceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProduceResponse) GetId() string
- func (*ProduceResponse) ProtoMessage()
- func (x *ProduceResponse) ProtoReflect() protoreflect.Message
- func (x *ProduceResponse) Reset()
- func (x *ProduceResponse) String() string
- func (m *ProduceResponse) Validate() error
- func (m *ProduceResponse) ValidateAll() error
- type ProduceResponseMultiError
- type ProduceResponseValidationError
- func (e ProduceResponseValidationError) Cause() error
- func (e ProduceResponseValidationError) Error() string
- func (e ProduceResponseValidationError) ErrorName() string
- func (e ProduceResponseValidationError) Field() string
- func (e ProduceResponseValidationError) Key() bool
- func (e ProduceResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_core_message_broker_actors_v1_consumer_proto protoreflect.FileDescriptor
var File_core_message_broker_actors_v1_models_proto protoreflect.FileDescriptor
var File_core_message_broker_actors_v1_producer_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ConsumeRequest ¶
type ConsumeRequest struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message" bun:"message" csv:"message" pg:"message" yaml:"message"` Count *Count `protobuf:"bytes,2,opt,name=count,proto3,oneof" json:"count" bun:"count" csv:"count" pg:"count" yaml:"count"` // contains filtered or unexported fields }
func (*ConsumeRequest) Descriptor
deprecated
func (*ConsumeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConsumeRequest.ProtoReflect.Descriptor instead.
func (*ConsumeRequest) GetCount ¶
func (x *ConsumeRequest) GetCount() *Count
func (*ConsumeRequest) GetMessage ¶
func (x *ConsumeRequest) GetMessage() *Message
func (*ConsumeRequest) ProtoMessage ¶
func (*ConsumeRequest) ProtoMessage()
func (*ConsumeRequest) ProtoReflect ¶
func (x *ConsumeRequest) ProtoReflect() protoreflect.Message
func (*ConsumeRequest) Reset ¶
func (x *ConsumeRequest) Reset()
func (*ConsumeRequest) String ¶
func (x *ConsumeRequest) String() string
func (*ConsumeRequest) Validate ¶
func (m *ConsumeRequest) Validate() error
Validate checks the field values on ConsumeRequest 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 (*ConsumeRequest) ValidateAll ¶
func (m *ConsumeRequest) ValidateAll() error
ValidateAll checks the field values on ConsumeRequest 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 ConsumeRequestMultiError, or nil if none found.
type ConsumeRequestMultiError ¶
type ConsumeRequestMultiError []error
ConsumeRequestMultiError is an error wrapping multiple validation errors returned by ConsumeRequest.ValidateAll() if the designated constraints aren't met.
func (ConsumeRequestMultiError) AllErrors ¶
func (m ConsumeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsumeRequestMultiError) Error ¶
func (m ConsumeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsumeRequestValidationError ¶
type ConsumeRequestValidationError struct {
// contains filtered or unexported fields
}
ConsumeRequestValidationError is the validation error returned by ConsumeRequest.Validate if the designated constraints aren't met.
func (ConsumeRequestValidationError) Cause ¶
func (e ConsumeRequestValidationError) Cause() error
Cause function returns cause value.
func (ConsumeRequestValidationError) Error ¶
func (e ConsumeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ConsumeRequestValidationError) ErrorName ¶
func (e ConsumeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ConsumeRequestValidationError) Field ¶
func (e ConsumeRequestValidationError) Field() string
Field function returns field value.
func (ConsumeRequestValidationError) Key ¶
func (e ConsumeRequestValidationError) Key() bool
Key function returns key value.
func (ConsumeRequestValidationError) Reason ¶
func (e ConsumeRequestValidationError) Reason() string
Reason function returns reason value.
type ConsumeResponse ¶
type ConsumeResponse struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message" bun:"message" csv:"message" pg:"message" yaml:"message"` // contains filtered or unexported fields }
func (*ConsumeResponse) Descriptor
deprecated
func (*ConsumeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConsumeResponse.ProtoReflect.Descriptor instead.
func (*ConsumeResponse) GetMessage ¶
func (x *ConsumeResponse) GetMessage() *Message
func (*ConsumeResponse) ProtoMessage ¶
func (*ConsumeResponse) ProtoMessage()
func (*ConsumeResponse) ProtoReflect ¶
func (x *ConsumeResponse) ProtoReflect() protoreflect.Message
func (*ConsumeResponse) Reset ¶
func (x *ConsumeResponse) Reset()
func (*ConsumeResponse) String ¶
func (x *ConsumeResponse) String() string
func (*ConsumeResponse) Validate ¶
func (m *ConsumeResponse) Validate() error
Validate checks the field values on ConsumeResponse 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 (*ConsumeResponse) ValidateAll ¶
func (m *ConsumeResponse) ValidateAll() error
ValidateAll checks the field values on ConsumeResponse 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 ConsumeResponseMultiError, or nil if none found.
type ConsumeResponseMultiError ¶
type ConsumeResponseMultiError []error
ConsumeResponseMultiError is an error wrapping multiple validation errors returned by ConsumeResponse.ValidateAll() if the designated constraints aren't met.
func (ConsumeResponseMultiError) AllErrors ¶
func (m ConsumeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConsumeResponseMultiError) Error ¶
func (m ConsumeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConsumeResponseValidationError ¶
type ConsumeResponseValidationError struct {
// contains filtered or unexported fields
}
ConsumeResponseValidationError is the validation error returned by ConsumeResponse.Validate if the designated constraints aren't met.
func (ConsumeResponseValidationError) Cause ¶
func (e ConsumeResponseValidationError) Cause() error
Cause function returns cause value.
func (ConsumeResponseValidationError) Error ¶
func (e ConsumeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ConsumeResponseValidationError) ErrorName ¶
func (e ConsumeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ConsumeResponseValidationError) Field ¶
func (e ConsumeResponseValidationError) Field() string
Field function returns field value.
func (ConsumeResponseValidationError) Key ¶
func (e ConsumeResponseValidationError) Key() bool
Key function returns key value.
func (ConsumeResponseValidationError) Reason ¶
func (e ConsumeResponseValidationError) Reason() string
Reason function returns reason value.
type Count ¶
type Count struct { // The page a message can be found on Page uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page" bun:"page" csv:"page" pg:"page" yaml:"page"` // The number for that page Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number" bun:"number" csv:"number" pg:"number" yaml:"number"` // contains filtered or unexported fields }
Count is what determines the total order of the `Messages` in the system
func (*Count) Descriptor
deprecated
func (*Count) ProtoMessage ¶
func (*Count) ProtoMessage()
func (*Count) ProtoReflect ¶
func (x *Count) ProtoReflect() protoreflect.Message
func (*Count) Validate ¶
Validate checks the field values on Count 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 (*Count) ValidateAll ¶
ValidateAll checks the field values on Count 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 CountMultiError, or nil if none found.
type CountMultiError ¶
type CountMultiError []error
CountMultiError is an error wrapping multiple validation errors returned by Count.ValidateAll() if the designated constraints aren't met.
func (CountMultiError) AllErrors ¶
func (m CountMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CountMultiError) Error ¶
func (m CountMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CountValidationError ¶
type CountValidationError struct {
// contains filtered or unexported fields
}
CountValidationError is the validation error returned by Count.Validate if the designated constraints aren't met.
func (CountValidationError) Cause ¶
func (e CountValidationError) Cause() error
Cause function returns cause value.
func (CountValidationError) Error ¶
func (e CountValidationError) Error() string
Error satisfies the builtin error interface
func (CountValidationError) ErrorName ¶
func (e CountValidationError) ErrorName() string
ErrorName returns error name.
func (CountValidationError) Field ¶
func (e CountValidationError) Field() string
Field function returns field value.
func (CountValidationError) Key ¶
func (e CountValidationError) Key() bool
Key function returns key value.
func (CountValidationError) Reason ¶
func (e CountValidationError) Reason() string
Reason function returns reason value.
type Message ¶
type Message struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bun:"id" csv:"id" pg:"id" yaml:"id"` // use this domain key, and send me all the messages Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain" bun:"domain" csv:"domain" pg:"domain" yaml:"domain"` // of this kind Kind *anypb.Any `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind" bun:"kind" csv:"kind" pg:"kind" yaml:"kind"` Count *Count `protobuf:"bytes,4,opt,name=count,proto3" json:"count" bun:"count" csv:"count" pg:"count" yaml:"count"` // contains filtered or unexported fields }
Message is the main data structure that is sent between the `Producer` and the `Consumer`
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) Validate ¶
Validate checks the field values on Message 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 (*Message) ValidateAll ¶
ValidateAll checks the field values on Message 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 MessageMultiError, or nil if none found.
type MessageMultiError ¶
type MessageMultiError []error
MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.
func (MessageMultiError) AllErrors ¶
func (m MessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MessageMultiError) Error ¶
func (m MessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MessageValidationError ¶
type MessageValidationError struct {
// contains filtered or unexported fields
}
MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.
func (MessageValidationError) Cause ¶
func (e MessageValidationError) Cause() error
Cause function returns cause value.
func (MessageValidationError) Error ¶
func (e MessageValidationError) Error() string
Error satisfies the builtin error interface
func (MessageValidationError) ErrorName ¶
func (e MessageValidationError) ErrorName() string
ErrorName returns error name.
func (MessageValidationError) Field ¶
func (e MessageValidationError) Field() string
Field function returns field value.
func (MessageValidationError) Key ¶
func (e MessageValidationError) Key() bool
Key function returns key value.
func (MessageValidationError) Reason ¶
func (e MessageValidationError) Reason() string
Reason function returns reason value.
type ProduceRequest ¶
type ProduceRequest struct { Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message" bun:"message" csv:"message" pg:"message" yaml:"message"` // contains filtered or unexported fields }
Send this `Message` to the other `Actors` in the system that are subscribed to this `Message`
func (*ProduceRequest) Descriptor
deprecated
func (*ProduceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProduceRequest.ProtoReflect.Descriptor instead.
func (*ProduceRequest) GetMessage ¶
func (x *ProduceRequest) GetMessage() *Message
func (*ProduceRequest) ProtoMessage ¶
func (*ProduceRequest) ProtoMessage()
func (*ProduceRequest) ProtoReflect ¶
func (x *ProduceRequest) ProtoReflect() protoreflect.Message
func (*ProduceRequest) Reset ¶
func (x *ProduceRequest) Reset()
func (*ProduceRequest) String ¶
func (x *ProduceRequest) String() string
func (*ProduceRequest) Validate ¶
func (m *ProduceRequest) Validate() error
Validate checks the field values on ProduceRequest 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 (*ProduceRequest) ValidateAll ¶
func (m *ProduceRequest) ValidateAll() error
ValidateAll checks the field values on ProduceRequest 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 ProduceRequestMultiError, or nil if none found.
type ProduceRequestMultiError ¶
type ProduceRequestMultiError []error
ProduceRequestMultiError is an error wrapping multiple validation errors returned by ProduceRequest.ValidateAll() if the designated constraints aren't met.
func (ProduceRequestMultiError) AllErrors ¶
func (m ProduceRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProduceRequestMultiError) Error ¶
func (m ProduceRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProduceRequestValidationError ¶
type ProduceRequestValidationError struct {
// contains filtered or unexported fields
}
ProduceRequestValidationError is the validation error returned by ProduceRequest.Validate if the designated constraints aren't met.
func (ProduceRequestValidationError) Cause ¶
func (e ProduceRequestValidationError) Cause() error
Cause function returns cause value.
func (ProduceRequestValidationError) Error ¶
func (e ProduceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ProduceRequestValidationError) ErrorName ¶
func (e ProduceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ProduceRequestValidationError) Field ¶
func (e ProduceRequestValidationError) Field() string
Field function returns field value.
func (ProduceRequestValidationError) Key ¶
func (e ProduceRequestValidationError) Key() bool
Key function returns key value.
func (ProduceRequestValidationError) Reason ¶
func (e ProduceRequestValidationError) Reason() string
Reason function returns reason value.
type ProduceResponse ¶
type ProduceResponse struct { // The message id is returned as a way to acknowledge the message as been committed Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bun:"id" csv:"id" pg:"id" yaml:"id"` // contains filtered or unexported fields }
func (*ProduceResponse) Descriptor
deprecated
func (*ProduceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProduceResponse.ProtoReflect.Descriptor instead.
func (*ProduceResponse) GetId ¶
func (x *ProduceResponse) GetId() string
func (*ProduceResponse) ProtoMessage ¶
func (*ProduceResponse) ProtoMessage()
func (*ProduceResponse) ProtoReflect ¶
func (x *ProduceResponse) ProtoReflect() protoreflect.Message
func (*ProduceResponse) Reset ¶
func (x *ProduceResponse) Reset()
func (*ProduceResponse) String ¶
func (x *ProduceResponse) String() string
func (*ProduceResponse) Validate ¶
func (m *ProduceResponse) Validate() error
Validate checks the field values on ProduceResponse 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 (*ProduceResponse) ValidateAll ¶
func (m *ProduceResponse) ValidateAll() error
ValidateAll checks the field values on ProduceResponse 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 ProduceResponseMultiError, or nil if none found.
type ProduceResponseMultiError ¶
type ProduceResponseMultiError []error
ProduceResponseMultiError is an error wrapping multiple validation errors returned by ProduceResponse.ValidateAll() if the designated constraints aren't met.
func (ProduceResponseMultiError) AllErrors ¶
func (m ProduceResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProduceResponseMultiError) Error ¶
func (m ProduceResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProduceResponseValidationError ¶
type ProduceResponseValidationError struct {
// contains filtered or unexported fields
}
ProduceResponseValidationError is the validation error returned by ProduceResponse.Validate if the designated constraints aren't met.
func (ProduceResponseValidationError) Cause ¶
func (e ProduceResponseValidationError) Cause() error
Cause function returns cause value.
func (ProduceResponseValidationError) Error ¶
func (e ProduceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ProduceResponseValidationError) ErrorName ¶
func (e ProduceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ProduceResponseValidationError) Field ¶
func (e ProduceResponseValidationError) Field() string
Field function returns field value.
func (ProduceResponseValidationError) Key ¶
func (e ProduceResponseValidationError) Key() bool
Key function returns key value.
func (ProduceResponseValidationError) Reason ¶
func (e ProduceResponseValidationError) Reason() string
Reason function returns reason value.