Documentation ¶
Index ¶
- Variables
- type GetMessageRequest
- func (*GetMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMessageRequest) GetId() string
- func (*GetMessageRequest) ProtoMessage()
- func (x *GetMessageRequest) ProtoReflect() protoreflect.Message
- func (x *GetMessageRequest) Reset()
- func (x *GetMessageRequest) String() string
- func (m *GetMessageRequest) Validate() error
- func (m *GetMessageRequest) ValidateAll() error
- type GetMessageRequestMultiError
- type GetMessageRequestValidationError
- func (e GetMessageRequestValidationError) Cause() error
- func (e GetMessageRequestValidationError) Error() string
- func (e GetMessageRequestValidationError) ErrorName() string
- func (e GetMessageRequestValidationError) Field() string
- func (e GetMessageRequestValidationError) Key() bool
- func (e GetMessageRequestValidationError) Reason() string
- type GetMessageResponse
- func (*GetMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMessageResponse) GetId() string
- func (x *GetMessageResponse) GetMessage() string
- func (*GetMessageResponse) ProtoMessage()
- func (x *GetMessageResponse) ProtoReflect() protoreflect.Message
- func (x *GetMessageResponse) Reset()
- func (x *GetMessageResponse) String() string
- func (m *GetMessageResponse) Validate() error
- func (m *GetMessageResponse) ValidateAll() error
- type GetMessageResponseMultiError
- type GetMessageResponseValidationError
- func (e GetMessageResponseValidationError) Cause() error
- func (e GetMessageResponseValidationError) Error() string
- func (e GetMessageResponseValidationError) ErrorName() string
- func (e GetMessageResponseValidationError) Field() string
- func (e GetMessageResponseValidationError) Key() bool
- func (e GetMessageResponseValidationError) Reason() string
- type SendMessageRequest
- func (*SendMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageRequest) GetMessage() string
- func (x *SendMessageRequest) GetRecipientId() string
- func (*SendMessageRequest) ProtoMessage()
- func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SendMessageRequest) Reset()
- func (x *SendMessageRequest) String() string
- func (m *SendMessageRequest) Validate() error
- func (m *SendMessageRequest) ValidateAll() error
- type SendMessageRequestMultiError
- type SendMessageRequestValidationError
- func (e SendMessageRequestValidationError) Cause() error
- func (e SendMessageRequestValidationError) Error() string
- func (e SendMessageRequestValidationError) ErrorName() string
- func (e SendMessageRequestValidationError) Field() string
- func (e SendMessageRequestValidationError) Key() bool
- func (e SendMessageRequestValidationError) Reason() string
- type SendMessageResponse
- func (*SendMessageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendMessageResponse) GetId() string
- func (*SendMessageResponse) ProtoMessage()
- func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
- func (x *SendMessageResponse) Reset()
- func (x *SendMessageResponse) String() string
- func (m *SendMessageResponse) Validate() error
- func (m *SendMessageResponse) ValidateAll() error
- type SendMessageResponseMultiError
- type SendMessageResponseValidationError
- func (e SendMessageResponseValidationError) Cause() error
- func (e SendMessageResponseValidationError) Error() string
- func (e SendMessageResponseValidationError) ErrorName() string
- func (e SendMessageResponseValidationError) Field() string
- func (e SendMessageResponseValidationError) Key() bool
- func (e SendMessageResponseValidationError) Reason() string
- type TestServiceClient
- type TestServiceHandler
- type TestServiceNatsClient
- type TestServiceNatsMicroServiceWrapper
Constants ¶
This section is empty.
Variables ¶
var File_example_service_v1_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GetMessageRequest ¶
type GetMessageRequest struct { // The message id itself Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetMessageRequest is the request for GetMessage
func (*GetMessageRequest) Descriptor
deprecated
func (*GetMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMessageRequest.ProtoReflect.Descriptor instead.
func (*GetMessageRequest) GetId ¶
func (x *GetMessageRequest) GetId() string
func (*GetMessageRequest) ProtoMessage ¶
func (*GetMessageRequest) ProtoMessage()
func (*GetMessageRequest) ProtoReflect ¶
func (x *GetMessageRequest) ProtoReflect() protoreflect.Message
func (*GetMessageRequest) Reset ¶
func (x *GetMessageRequest) Reset()
func (*GetMessageRequest) String ¶
func (x *GetMessageRequest) String() string
func (*GetMessageRequest) Validate ¶
func (m *GetMessageRequest) Validate() error
Validate checks the field values on GetMessageRequest 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 (*GetMessageRequest) ValidateAll ¶
func (m *GetMessageRequest) ValidateAll() error
ValidateAll checks the field values on GetMessageRequest 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 GetMessageRequestMultiError, or nil if none found.
type GetMessageRequestMultiError ¶
type GetMessageRequestMultiError []error
GetMessageRequestMultiError is an error wrapping multiple validation errors returned by GetMessageRequest.ValidateAll() if the designated constraints aren't met.
func (GetMessageRequestMultiError) AllErrors ¶
func (m GetMessageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMessageRequestMultiError) Error ¶
func (m GetMessageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMessageRequestValidationError ¶
type GetMessageRequestValidationError struct {
// contains filtered or unexported fields
}
GetMessageRequestValidationError is the validation error returned by GetMessageRequest.Validate if the designated constraints aren't met.
func (GetMessageRequestValidationError) Cause ¶
func (e GetMessageRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMessageRequestValidationError) Error ¶
func (e GetMessageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMessageRequestValidationError) ErrorName ¶
func (e GetMessageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMessageRequestValidationError) Field ¶
func (e GetMessageRequestValidationError) Field() string
Field function returns field value.
func (GetMessageRequestValidationError) Key ¶
func (e GetMessageRequestValidationError) Key() bool
Key function returns key value.
func (GetMessageRequestValidationError) Reason ¶
func (e GetMessageRequestValidationError) Reason() string
Reason function returns reason value.
type GetMessageResponse ¶
type GetMessageResponse struct { // The id of the message Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The message itself Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
GetMessageResponse is the response of GetMessage
func (*GetMessageResponse) Descriptor
deprecated
func (*GetMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMessageResponse.ProtoReflect.Descriptor instead.
func (*GetMessageResponse) GetId ¶
func (x *GetMessageResponse) GetId() string
func (*GetMessageResponse) GetMessage ¶
func (x *GetMessageResponse) GetMessage() string
func (*GetMessageResponse) ProtoMessage ¶
func (*GetMessageResponse) ProtoMessage()
func (*GetMessageResponse) ProtoReflect ¶
func (x *GetMessageResponse) ProtoReflect() protoreflect.Message
func (*GetMessageResponse) Reset ¶
func (x *GetMessageResponse) Reset()
func (*GetMessageResponse) String ¶
func (x *GetMessageResponse) String() string
func (*GetMessageResponse) Validate ¶
func (m *GetMessageResponse) Validate() error
Validate checks the field values on GetMessageResponse 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 (*GetMessageResponse) ValidateAll ¶
func (m *GetMessageResponse) ValidateAll() error
ValidateAll checks the field values on GetMessageResponse 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 GetMessageResponseMultiError, or nil if none found.
type GetMessageResponseMultiError ¶
type GetMessageResponseMultiError []error
GetMessageResponseMultiError is an error wrapping multiple validation errors returned by GetMessageResponse.ValidateAll() if the designated constraints aren't met.
func (GetMessageResponseMultiError) AllErrors ¶
func (m GetMessageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMessageResponseMultiError) Error ¶
func (m GetMessageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMessageResponseValidationError ¶
type GetMessageResponseValidationError struct {
// contains filtered or unexported fields
}
GetMessageResponseValidationError is the validation error returned by GetMessageResponse.Validate if the designated constraints aren't met.
func (GetMessageResponseValidationError) Cause ¶
func (e GetMessageResponseValidationError) Cause() error
Cause function returns cause value.
func (GetMessageResponseValidationError) Error ¶
func (e GetMessageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetMessageResponseValidationError) ErrorName ¶
func (e GetMessageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetMessageResponseValidationError) Field ¶
func (e GetMessageResponseValidationError) Field() string
Field function returns field value.
func (GetMessageResponseValidationError) Key ¶
func (e GetMessageResponseValidationError) Key() bool
Key function returns key value.
func (GetMessageResponseValidationError) Reason ¶
func (e GetMessageResponseValidationError) Reason() string
Reason function returns reason value.
type SendMessageRequest ¶
type SendMessageRequest struct { // The message itself Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // The recipient email of the message RecipientId string `protobuf:"bytes,2,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"` // contains filtered or unexported fields }
SendMessageRequest is the request for SendMessage
func (*SendMessageRequest) Descriptor
deprecated
func (*SendMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageRequest.ProtoReflect.Descriptor instead.
func (*SendMessageRequest) GetMessage ¶
func (x *SendMessageRequest) GetMessage() string
func (*SendMessageRequest) GetRecipientId ¶
func (x *SendMessageRequest) GetRecipientId() string
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) ProtoReflect ¶
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message
func (*SendMessageRequest) Reset ¶
func (x *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (x *SendMessageRequest) String() string
func (*SendMessageRequest) Validate ¶
func (m *SendMessageRequest) Validate() error
Validate checks the field values on SendMessageRequest 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 (*SendMessageRequest) ValidateAll ¶
func (m *SendMessageRequest) ValidateAll() error
ValidateAll checks the field values on SendMessageRequest 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 SendMessageRequestMultiError, or nil if none found.
type SendMessageRequestMultiError ¶
type SendMessageRequestMultiError []error
SendMessageRequestMultiError is an error wrapping multiple validation errors returned by SendMessageRequest.ValidateAll() if the designated constraints aren't met.
func (SendMessageRequestMultiError) AllErrors ¶
func (m SendMessageRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendMessageRequestMultiError) Error ¶
func (m SendMessageRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendMessageRequestValidationError ¶
type SendMessageRequestValidationError struct {
// contains filtered or unexported fields
}
SendMessageRequestValidationError is the validation error returned by SendMessageRequest.Validate if the designated constraints aren't met.
func (SendMessageRequestValidationError) Cause ¶
func (e SendMessageRequestValidationError) Cause() error
Cause function returns cause value.
func (SendMessageRequestValidationError) Error ¶
func (e SendMessageRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SendMessageRequestValidationError) ErrorName ¶
func (e SendMessageRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SendMessageRequestValidationError) Field ¶
func (e SendMessageRequestValidationError) Field() string
Field function returns field value.
func (SendMessageRequestValidationError) Key ¶
func (e SendMessageRequestValidationError) Key() bool
Key function returns key value.
func (SendMessageRequestValidationError) Reason ¶
func (e SendMessageRequestValidationError) Reason() string
Reason function returns reason value.
type SendMessageResponse ¶
type SendMessageResponse struct { // The id of the message sent Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
SendMessageResponse is the response of SendMessage
func (*SendMessageResponse) Descriptor
deprecated
func (*SendMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendMessageResponse.ProtoReflect.Descriptor instead.
func (*SendMessageResponse) GetId ¶
func (x *SendMessageResponse) GetId() string
func (*SendMessageResponse) ProtoMessage ¶
func (*SendMessageResponse) ProtoMessage()
func (*SendMessageResponse) ProtoReflect ¶
func (x *SendMessageResponse) ProtoReflect() protoreflect.Message
func (*SendMessageResponse) Reset ¶
func (x *SendMessageResponse) Reset()
func (*SendMessageResponse) String ¶
func (x *SendMessageResponse) String() string
func (*SendMessageResponse) Validate ¶
func (m *SendMessageResponse) Validate() error
Validate checks the field values on SendMessageResponse 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 (*SendMessageResponse) ValidateAll ¶
func (m *SendMessageResponse) ValidateAll() error
ValidateAll checks the field values on SendMessageResponse 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 SendMessageResponseMultiError, or nil if none found.
type SendMessageResponseMultiError ¶
type SendMessageResponseMultiError []error
SendMessageResponseMultiError is an error wrapping multiple validation errors returned by SendMessageResponse.ValidateAll() if the designated constraints aren't met.
func (SendMessageResponseMultiError) AllErrors ¶
func (m SendMessageResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendMessageResponseMultiError) Error ¶
func (m SendMessageResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendMessageResponseValidationError ¶
type SendMessageResponseValidationError struct {
// contains filtered or unexported fields
}
SendMessageResponseValidationError is the validation error returned by SendMessageResponse.Validate if the designated constraints aren't met.
func (SendMessageResponseValidationError) Cause ¶
func (e SendMessageResponseValidationError) Cause() error
Cause function returns cause value.
func (SendMessageResponseValidationError) Error ¶
func (e SendMessageResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SendMessageResponseValidationError) ErrorName ¶
func (e SendMessageResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SendMessageResponseValidationError) Field ¶
func (e SendMessageResponseValidationError) Field() string
Field function returns field value.
func (SendMessageResponseValidationError) Key ¶
func (e SendMessageResponseValidationError) Key() bool
Key function returns key value.
func (SendMessageResponseValidationError) Reason ¶
func (e SendMessageResponseValidationError) Reason() string
Reason function returns reason value.
type TestServiceClient ¶
type TestServiceClient interface { SendMessage(ctx context.Context, req *SendMessageRequest, subjectPrefix string) (res *SendMessageResponse, err error) GetMessage(ctx context.Context, req *GetMessageRequest, subjectPrefix string) (res *GetMessageResponse, err error) }
type TestServiceHandler ¶ added in v0.11.0
type TestServiceHandler interface { SendMessage(ctx context.Context, req *SendMessageRequest) (res *SendMessageResponse, err error) GetMessage(ctx context.Context, req *GetMessageRequest) (res *GetMessageResponse, err error) }
TestServiceHandler should be implemented
type TestServiceNatsClient ¶
type TestServiceNatsClient struct {
// contains filtered or unexported fields
}
func NewTestServiceNatsClient ¶
func NewTestServiceNatsClient(options client.Options) *TestServiceNatsClient
func (*TestServiceNatsClient) GetMessage ¶
func (c *TestServiceNatsClient) GetMessage(ctx context.Context, req *GetMessageRequest, subjectPrefix string) (*GetMessageResponse, error)
func (*TestServiceNatsClient) SendMessage ¶
func (c *TestServiceNatsClient) SendMessage(ctx context.Context, req *SendMessageRequest, subjectPrefix string) (*SendMessageResponse, error)
type TestServiceNatsMicroServiceWrapper ¶
type TestServiceNatsMicroServiceWrapper struct {
// contains filtered or unexported fields
}
func NewTestServiceNatsMicroServiceWrapper ¶
func NewTestServiceNatsMicroServiceWrapper( testServiceHandler TestServiceHandler, options service.Options, ) *TestServiceNatsMicroServiceWrapper
func (*TestServiceNatsMicroServiceWrapper) GetNatsMicroService ¶
func (s *TestServiceNatsMicroServiceWrapper) GetNatsMicroService() micro.Service