exampleservicev1

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_service_v1_service_proto protoreflect.FileDescriptor

Functions

func NewTestServiceNatsMicroService added in v1.4.0

func NewTestServiceNatsMicroService(
	testServiceServer TestServiceServer,
	options service.Options,
) *testServiceServerNatsMicroService

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

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

Cause function returns cause value.

func (GetMessageRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMessageRequestValidationError) ErrorName

ErrorName returns error name.

func (GetMessageRequestValidationError) Field

Field function returns field value.

func (GetMessageRequestValidationError) Key

Key function returns key value.

func (GetMessageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (GetMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (GetMessageResponseValidationError) Field

Field function returns field value.

func (GetMessageResponseValidationError) Key

Key function returns key value.

func (GetMessageResponseValidationError) Reason

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

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

Cause function returns cause value.

func (SendMessageRequestValidationError) Error

Error satisfies the builtin error interface

func (SendMessageRequestValidationError) ErrorName

ErrorName returns error name.

func (SendMessageRequestValidationError) Field

Field function returns field value.

func (SendMessageRequestValidationError) Key

Key function returns key value.

func (SendMessageRequestValidationError) Reason

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

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

Cause function returns cause value.

func (SendMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (SendMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (SendMessageResponseValidationError) Field

Field function returns field value.

func (SendMessageResponseValidationError) Key

Key function returns key value.

func (SendMessageResponseValidationError) Reason

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)
}

func NewTestServiceClient added in v1.0.0

func NewTestServiceClient(options client.Options) TestServiceClient

type TestServiceServer

type TestServiceServer interface {
	SendMessage(ctx context.Context, req *SendMessageRequest) (res *SendMessageResponse, err error)
	GetMessage(ctx context.Context, req *GetMessageRequest) (res *GetMessageResponse, err error)
}

Jump to

Keyboard shortcuts

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