Documentation ¶
Index ¶
- type CreateChannelRequest
- type PurgeQueueChannelRequest
- type PurgeQueueChannelResponse
- type ReceiveCQRSResponse
- func (m *ReceiveCQRSResponse) SetBody(body any) *ReceiveCQRSResponse
- func (m *ReceiveCQRSResponse) SetError(error string) *ReceiveCQRSResponse
- func (m *ReceiveCQRSResponse) SetExecuted(executed bool) *ReceiveCQRSResponse
- func (m *ReceiveCQRSResponse) SetMetadata(metadata string) *ReceiveCQRSResponse
- func (m *ReceiveCQRSResponse) SetTags(tags string) *ReceiveCQRSResponse
- func (m *ReceiveCQRSResponse) SetTimestamp(timestamp int64) *ReceiveCQRSResponse
- type ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetBody(body any) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetClientId(clientId string) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetDelayedTo(delayedTo int64) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetExpirationAt(expirationAt int64) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetMessageId(messageId string) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetMetadata(metadata string) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetReRoutedFrom(reRoutedFrom string) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetReceivedCount(receivedCount int64) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetSequence(sequence int64) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetTags(tags string) *ReceiveQueueMessageResponse
- func (m *ReceiveQueueMessageResponse) SetTimestamp(timestamp int64) *ReceiveQueueMessageResponse
- type ReceiveQueueMessagesRequest
- type Request
- type Response
- type SendCQRSMessageRequest
- type SendCQRSMessageResponse
- type SendPubSubMessageRequest
- type SendQueueMessageRequest
- type SendQueueMessageResponse
- func (r *SendQueueMessageResponse) SetDelayedTo(delayedTo int64) *SendQueueMessageResponse
- func (r *SendQueueMessageResponse) SetExpiresAt(expiresAt int64) *SendQueueMessageResponse
- func (r *SendQueueMessageResponse) SetMessageId(messageId string) *SendQueueMessageResponse
- func (r *SendQueueMessageResponse) SetSentAt(sentAt int64) *SendQueueMessageResponse
- type StreamQueueMessagesRequest
- type StreamQueueMessagesRequestType
- type StreamQueueMessagesResponse
- func (r *StreamQueueMessagesResponse) Marshal() (string, error)
- func (r *StreamQueueMessagesResponse) SetError(error error) *StreamQueueMessagesResponse
- func (r *StreamQueueMessagesResponse) SetMessage(message *ReceiveQueueMessageResponse) *StreamQueueMessagesResponse
- func (r *StreamQueueMessagesResponse) SetRequestType(requestType StreamQueueMessagesRequestType) *StreamQueueMessagesResponse
- type SubscribeCQRSRequestMessage
- func (m *SubscribeCQRSRequestMessage) SetBody(body any) *SubscribeCQRSRequestMessage
- func (m *SubscribeCQRSRequestMessage) SetIsCommand(isCommand bool) *SubscribeCQRSRequestMessage
- func (m *SubscribeCQRSRequestMessage) SetMetadata(metadata string) *SubscribeCQRSRequestMessage
- func (m *SubscribeCQRSRequestMessage) SetReplyChannel(replyChannel string) *SubscribeCQRSRequestMessage
- func (m *SubscribeCQRSRequestMessage) SetRequestId(requestId string) *SubscribeCQRSRequestMessage
- func (m *SubscribeCQRSRequestMessage) SetTags(tags string) *SubscribeCQRSRequestMessage
- func (m *SubscribeCQRSRequestMessage) SetTimestamp(value int64) *SubscribeCQRSRequestMessage
- type SubscribePubSubMessage
- func (m *SubscribePubSubMessage) SetBody(body any) *SubscribePubSubMessage
- func (m *SubscribePubSubMessage) SetMessageId(messageId string) *SubscribePubSubMessage
- func (m *SubscribePubSubMessage) SetMetadata(metadata string) *SubscribePubSubMessage
- func (m *SubscribePubSubMessage) SetSequence(sequence int64) *SubscribePubSubMessage
- func (m *SubscribePubSubMessage) SetTags(tags string) *SubscribePubSubMessage
- func (m *SubscribePubSubMessage) SetTimestamp(value time.Time) *SubscribePubSubMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateChannelRequest ¶
func NewCreateChannelRequest ¶
func NewCreateChannelRequest() *CreateChannelRequest
func (*CreateChannelRequest) ParseRequest ¶
func (r *CreateChannelRequest) ParseRequest(req *Request) error
func (*CreateChannelRequest) Validate ¶
func (r *CreateChannelRequest) Validate() error
type PurgeQueueChannelRequest ¶
type PurgeQueueChannelRequest struct {
Channel string `json:"channel"`
}
func NewPurgeQueueChannelRequest ¶
func NewPurgeQueueChannelRequest() *PurgeQueueChannelRequest
func (*PurgeQueueChannelRequest) ParseRequest ¶
func (r *PurgeQueueChannelRequest) ParseRequest(req *Request) error
func (*PurgeQueueChannelRequest) Validate ¶
func (r *PurgeQueueChannelRequest) Validate() error
type PurgeQueueChannelResponse ¶
type PurgeQueueChannelResponse struct {
Count uint64 `json:"count"`
}
func NewPurgeQueueChannelResponse ¶
func NewPurgeQueueChannelResponse() *PurgeQueueChannelResponse
func (*PurgeQueueChannelResponse) SetCount ¶
func (r *PurgeQueueChannelResponse) SetCount(count uint64) *PurgeQueueChannelResponse
type ReceiveCQRSResponse ¶
type ReceiveCQRSResponse struct { Metadata string `json:"metadata,omitempty"` Body any `json:"body,omitempty"` Tags string `json:"tags,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` Executed bool `json:"executed"` Error string `json:"error,omitempty"` }
func NewReceiveCQRSResponse ¶
func NewReceiveCQRSResponse() *ReceiveCQRSResponse
func (*ReceiveCQRSResponse) SetBody ¶
func (m *ReceiveCQRSResponse) SetBody(body any) *ReceiveCQRSResponse
func (*ReceiveCQRSResponse) SetError ¶
func (m *ReceiveCQRSResponse) SetError(error string) *ReceiveCQRSResponse
func (*ReceiveCQRSResponse) SetExecuted ¶
func (m *ReceiveCQRSResponse) SetExecuted(executed bool) *ReceiveCQRSResponse
func (*ReceiveCQRSResponse) SetMetadata ¶
func (m *ReceiveCQRSResponse) SetMetadata(metadata string) *ReceiveCQRSResponse
func (*ReceiveCQRSResponse) SetTags ¶
func (m *ReceiveCQRSResponse) SetTags(tags string) *ReceiveCQRSResponse
func (*ReceiveCQRSResponse) SetTimestamp ¶
func (m *ReceiveCQRSResponse) SetTimestamp(timestamp int64) *ReceiveCQRSResponse
type ReceiveQueueMessageResponse ¶
type ReceiveQueueMessageResponse struct { MessageId string `json:"messageId"` ClientId string `json:"clientId"` Metadata string `json:"metadata"` Body any `json:"body"` Timestamp int64 `json:"timestamp"` Sequence int64 `json:"sequence"` Tags string `json:"tags"` ReceivedCount int64 `json:"receivedCount"` ReRoutedFrom string `json:"reRoutedFrom"` ExpirationAt int64 `json:"expirationAt"` DelayedTo int64 `json:"delayedTo"` }
func NewReceiveQueueMessageResponse ¶
func NewReceiveQueueMessageResponse() *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetBody ¶
func (m *ReceiveQueueMessageResponse) SetBody(body any) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetClientId ¶
func (m *ReceiveQueueMessageResponse) SetClientId(clientId string) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetDelayedTo ¶
func (m *ReceiveQueueMessageResponse) SetDelayedTo(delayedTo int64) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetExpirationAt ¶
func (m *ReceiveQueueMessageResponse) SetExpirationAt(expirationAt int64) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetMessageId ¶
func (m *ReceiveQueueMessageResponse) SetMessageId(messageId string) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetMetadata ¶
func (m *ReceiveQueueMessageResponse) SetMetadata(metadata string) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetReRoutedFrom ¶
func (m *ReceiveQueueMessageResponse) SetReRoutedFrom(reRoutedFrom string) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetReceivedCount ¶
func (m *ReceiveQueueMessageResponse) SetReceivedCount(receivedCount int64) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetSequence ¶
func (m *ReceiveQueueMessageResponse) SetSequence(sequence int64) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetTags ¶
func (m *ReceiveQueueMessageResponse) SetTags(tags string) *ReceiveQueueMessageResponse
func (*ReceiveQueueMessageResponse) SetTimestamp ¶
func (m *ReceiveQueueMessageResponse) SetTimestamp(timestamp int64) *ReceiveQueueMessageResponse
type ReceiveQueueMessagesRequest ¶
type ReceiveQueueMessagesRequest struct { Channel string `json:"channel"` IsPeek bool `json:"isPeek"` Count int `json:"count"` }
func NewReceiveQueueMessagesRequest ¶
func NewReceiveQueueMessagesRequest() *ReceiveQueueMessagesRequest
func (*ReceiveQueueMessagesRequest) ParseRequest ¶
func (r *ReceiveQueueMessagesRequest) ParseRequest(req *Request) error
func (*ReceiveQueueMessagesRequest) Validate ¶
func (r *ReceiveQueueMessagesRequest) Validate() error
type Request ¶
func NewRequest ¶
func NewRequest() *Request
type Response ¶
func NewResponse ¶
func NewResponse() *Response
type SendCQRSMessageRequest ¶
type SendCQRSMessageRequest struct { RequestId string `json:"requestId"` Channel string `json:"channel"` Metadata string `json:"metadata,omitempty"` Body any `json:"body"` Tags string `json:"tags,omitempty"` IsCommands bool `json:"isCommands"` Timeout int `json:"timeout"` // contains filtered or unexported fields }
func NewSendCQRSMessageRequest ¶
func NewSendCQRSMessageRequest() *SendCQRSMessageRequest
func (*SendCQRSMessageRequest) ParseRequest ¶
func (r *SendCQRSMessageRequest) ParseRequest(req *Request) error
func (*SendCQRSMessageRequest) TagsKeyValue ¶
func (r *SendCQRSMessageRequest) TagsKeyValue() map[string]string
func (*SendCQRSMessageRequest) Validate ¶
func (r *SendCQRSMessageRequest) Validate() error
type SendCQRSMessageResponse ¶
type SendCQRSMessageResponse struct { RequestId string `json:"requestId"` ReplyChannel string `json:"replyChannel"` Metadata string `json:"metadata,omitempty"` Body any `json:"body"` Tags string `json:"tags,omitempty"` Executed bool `json:"executed"` Error string `json:"error,omitempty"` // contains filtered or unexported fields }
func NewSendCQRSMessageResponse ¶
func NewSendCQRSMessageResponse() *SendCQRSMessageResponse
func (*SendCQRSMessageResponse) GetError ¶
func (r *SendCQRSMessageResponse) GetError() error
func (*SendCQRSMessageResponse) ParseRequest ¶
func (r *SendCQRSMessageResponse) ParseRequest(req *Request) error
func (*SendCQRSMessageResponse) TagsKeyValue ¶
func (r *SendCQRSMessageResponse) TagsKeyValue() map[string]string
func (*SendCQRSMessageResponse) Validate ¶
func (r *SendCQRSMessageResponse) Validate() error
type SendPubSubMessageRequest ¶
type SendPubSubMessageRequest struct { MessageId string `json:"messageId,omitempty"` Channel string `json:"channel"` ClientId string `json:"clientId,omitempty"` Metadata string `json:"metadata,omitempty"` Body any `json:"body"` Tags string `json:"tags,omitempty"` IsEvents bool `json:"isEvents,omitempty"` // contains filtered or unexported fields }
func NewSendPubSubMessageRequest ¶
func NewSendPubSubMessageRequest() *SendPubSubMessageRequest
func (*SendPubSubMessageRequest) ParseRequest ¶
func (r *SendPubSubMessageRequest) ParseRequest(req *Request) error
func (*SendPubSubMessageRequest) TagsKeyValue ¶
func (r *SendPubSubMessageRequest) TagsKeyValue() map[string]string
func (*SendPubSubMessageRequest) Validate ¶
func (r *SendPubSubMessageRequest) Validate() error
type SendQueueMessageRequest ¶
type SendQueueMessageRequest struct { MessageId string `json:"messageId,omitempty"` Channel string `json:"channel"` ClientId string `json:"clientId,omitempty"` Metadata string `json:"metadata,omitempty"` Body any `json:"body"` Tags string `json:"tags,omitempty"` MaxReceiveCount int `json:"maxReceiveCount,omitempty"` MaxReceiveQueue string `json:"maxReceiveQueue,omitempty"` ExpirationAt int `json:"expirationAt,omitempty"` DelayedTo int `json:"delayedTo,omitempty"` // contains filtered or unexported fields }
func NewSendQueueMessageRequest ¶
func NewSendQueueMessageRequest() *SendQueueMessageRequest
func (*SendQueueMessageRequest) ParseRequest ¶
func (r *SendQueueMessageRequest) ParseRequest(req *Request) error
func (*SendQueueMessageRequest) TagsKeyValue ¶
func (r *SendQueueMessageRequest) TagsKeyValue() map[string]string
func (*SendQueueMessageRequest) Validate ¶
func (r *SendQueueMessageRequest) Validate() error
type SendQueueMessageResponse ¶
type SendQueueMessageResponse struct { MessageId string `json:"messageId,omitempty"` SentAt string `json:"sentAt,omitempty"` ExpiresAt string `json:"expiresAt,omitempty"` DelayedTo string `json:"delayedTo,omitempty"` }
func NewSendQueueMessageResponse ¶
func NewSendQueueMessageResponse() *SendQueueMessageResponse
func (*SendQueueMessageResponse) SetDelayedTo ¶
func (r *SendQueueMessageResponse) SetDelayedTo(delayedTo int64) *SendQueueMessageResponse
func (*SendQueueMessageResponse) SetExpiresAt ¶
func (r *SendQueueMessageResponse) SetExpiresAt(expiresAt int64) *SendQueueMessageResponse
func (*SendQueueMessageResponse) SetMessageId ¶
func (r *SendQueueMessageResponse) SetMessageId(messageId string) *SendQueueMessageResponse
func (*SendQueueMessageResponse) SetSentAt ¶
func (r *SendQueueMessageResponse) SetSentAt(sentAt int64) *SendQueueMessageResponse
type StreamQueueMessagesRequest ¶
type StreamQueueMessagesRequest struct { RequestType StreamQueueMessagesRequestType `json:"requestType"` Channel string `json:"channel"` VisibilitySeconds int `json:"visibilitySeconds"` WaitSeconds int `json:"waitSeconds"` RefSequence int64 `json:"refSequence"` }
func NewStreamQueueMessagesRequest ¶
func NewStreamQueueMessagesRequest() *StreamQueueMessagesRequest
func (*StreamQueueMessagesRequest) ParseRequest ¶
func (r *StreamQueueMessagesRequest) ParseRequest(data []byte) error
func (*StreamQueueMessagesRequest) Validate ¶
func (r *StreamQueueMessagesRequest) Validate() error
type StreamQueueMessagesRequestType ¶
type StreamQueueMessagesRequestType string
const ( PollQueueMessagesRequestType StreamQueueMessagesRequestType = "stream_queue_messages" AckQueueMessagesRequestType StreamQueueMessagesRequestType = "ack_queue_messages" RejectQueueMessagesRequestType StreamQueueMessagesRequestType = "reject_queue_messages" )
type StreamQueueMessagesResponse ¶
type StreamQueueMessagesResponse struct { RequestType StreamQueueMessagesRequestType `json:"requestType"` Message *ReceiveQueueMessageResponse `json:"message"` Error string `json:"error"` IsError bool `json:"isError"` }
func NewStreamQueueMessageResponse ¶
func NewStreamQueueMessageResponse() *StreamQueueMessagesResponse
func (*StreamQueueMessagesResponse) Marshal ¶
func (r *StreamQueueMessagesResponse) Marshal() (string, error)
func (*StreamQueueMessagesResponse) SetError ¶
func (r *StreamQueueMessagesResponse) SetError(error error) *StreamQueueMessagesResponse
func (*StreamQueueMessagesResponse) SetMessage ¶
func (r *StreamQueueMessagesResponse) SetMessage(message *ReceiveQueueMessageResponse) *StreamQueueMessagesResponse
func (*StreamQueueMessagesResponse) SetRequestType ¶
func (r *StreamQueueMessagesResponse) SetRequestType(requestType StreamQueueMessagesRequestType) *StreamQueueMessagesResponse
type SubscribeCQRSRequestMessage ¶
type SubscribeCQRSRequestMessage struct { RequestId string `json:"requestId"` Metadata string `json:"metadata"` Body any `json:"body"` Timestamp int64 `json:"timestamp"` ReplyChannel string `json:"replyChannel"` Tags string `json:"tags"` IsCommand bool `json:"isCommand"` }
func NewSubscribeCQRSRequestMessage ¶
func NewSubscribeCQRSRequestMessage() *SubscribeCQRSRequestMessage
func (*SubscribeCQRSRequestMessage) SetBody ¶
func (m *SubscribeCQRSRequestMessage) SetBody(body any) *SubscribeCQRSRequestMessage
func (*SubscribeCQRSRequestMessage) SetIsCommand ¶
func (m *SubscribeCQRSRequestMessage) SetIsCommand(isCommand bool) *SubscribeCQRSRequestMessage
func (*SubscribeCQRSRequestMessage) SetMetadata ¶
func (m *SubscribeCQRSRequestMessage) SetMetadata(metadata string) *SubscribeCQRSRequestMessage
func (*SubscribeCQRSRequestMessage) SetReplyChannel ¶
func (m *SubscribeCQRSRequestMessage) SetReplyChannel(replyChannel string) *SubscribeCQRSRequestMessage
func (*SubscribeCQRSRequestMessage) SetRequestId ¶
func (m *SubscribeCQRSRequestMessage) SetRequestId(requestId string) *SubscribeCQRSRequestMessage
func (*SubscribeCQRSRequestMessage) SetTags ¶
func (m *SubscribeCQRSRequestMessage) SetTags(tags string) *SubscribeCQRSRequestMessage
func (*SubscribeCQRSRequestMessage) SetTimestamp ¶
func (m *SubscribeCQRSRequestMessage) SetTimestamp(value int64) *SubscribeCQRSRequestMessage
type SubscribePubSubMessage ¶
type SubscribePubSubMessage struct { MessageId string `json:"messageId"` Metadata string `json:"metadata"` Body any `json:"body"` Timestamp int64 `json:"timestamp"` Tags string `json:"tags,omitempty"` Sequence int64 `json:"sequence,omitempty"` }
func NewSubscribePubSubMessage ¶
func NewSubscribePubSubMessage() *SubscribePubSubMessage
func (*SubscribePubSubMessage) SetBody ¶
func (m *SubscribePubSubMessage) SetBody(body any) *SubscribePubSubMessage
func (*SubscribePubSubMessage) SetMessageId ¶
func (m *SubscribePubSubMessage) SetMessageId(messageId string) *SubscribePubSubMessage
func (*SubscribePubSubMessage) SetMetadata ¶
func (m *SubscribePubSubMessage) SetMetadata(metadata string) *SubscribePubSubMessage
func (*SubscribePubSubMessage) SetSequence ¶
func (m *SubscribePubSubMessage) SetSequence(sequence int64) *SubscribePubSubMessage
func (*SubscribePubSubMessage) SetTags ¶
func (m *SubscribePubSubMessage) SetTags(tags string) *SubscribePubSubMessage
func (*SubscribePubSubMessage) SetTimestamp ¶
func (m *SubscribePubSubMessage) SetTimestamp(value time.Time) *SubscribePubSubMessage
Source Files ¶
- create_channel_request.go
- helpers.go
- purge_queue_channel_request.go
- purge_queue_channel_response.go
- receive_cqrs_response.go
- receive_queue_messages_request.go
- receive_queue_messages_response.go
- request.go
- response.go
- send_cqrs_message_request.go
- send_cqrs_message_response.go
- send_pubsub_message_request.go
- send_queue_message_request.go
- send_queue_message_response.go
- stream_queue_messages_request.go
- stream_queue_messages_response.go
- subscribe_cqrs_request_message.go
- subscribe_pubsub_message.go
Click to show internal directories.
Click to hide internal directories.