actions

package
v0.0.0-...-7febb3a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateChannelRequest

type CreateChannelRequest struct {
	Type string `json:"type"`
	Name string `json:"name"`
}

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

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 (*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 (*ReceiveQueueMessageResponse) SetClientId

func (*ReceiveQueueMessageResponse) SetDelayedTo

func (*ReceiveQueueMessageResponse) SetExpirationAt

func (m *ReceiveQueueMessageResponse) SetExpirationAt(expirationAt int64) *ReceiveQueueMessageResponse

func (*ReceiveQueueMessageResponse) SetMessageId

func (*ReceiveQueueMessageResponse) SetMetadata

func (*ReceiveQueueMessageResponse) SetReRoutedFrom

func (m *ReceiveQueueMessageResponse) SetReRoutedFrom(reRoutedFrom string) *ReceiveQueueMessageResponse

func (*ReceiveQueueMessageResponse) SetReceivedCount

func (m *ReceiveQueueMessageResponse) SetReceivedCount(receivedCount int64) *ReceiveQueueMessageResponse

func (*ReceiveQueueMessageResponse) SetSequence

func (*ReceiveQueueMessageResponse) SetTags

func (*ReceiveQueueMessageResponse) SetTimestamp

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

type Request struct {
	Type string                 `json:"type"`
	Data map[string]interface{} `json:"data"`
}

func NewRequest

func NewRequest() *Request

func (*Request) SetData

func (r *Request) SetData(data map[string]interface{}) *Request

func (*Request) SetType

func (r *Request) SetType(type_ string) *Request

type Response

type Response struct {
	Error string `json:"error,omitempty"`
	Data  any    `json:"data"`
}

func NewResponse

func NewResponse() *Response

func (*Response) SetData

func (r *Response) SetData(data any) *Response

func (*Response) SetError

func (r *Response) SetError(err error) *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

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 (*StreamQueueMessagesResponse) SetMessage

func (*StreamQueueMessagesResponse) SetRequestType

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 (*SubscribeCQRSRequestMessage) SetIsCommand

func (m *SubscribeCQRSRequestMessage) SetIsCommand(isCommand bool) *SubscribeCQRSRequestMessage

func (*SubscribeCQRSRequestMessage) SetMetadata

func (*SubscribeCQRSRequestMessage) SetReplyChannel

func (m *SubscribeCQRSRequestMessage) SetReplyChannel(replyChannel string) *SubscribeCQRSRequestMessage

func (*SubscribeCQRSRequestMessage) SetRequestId

func (*SubscribeCQRSRequestMessage) SetTags

func (*SubscribeCQRSRequestMessage) SetTimestamp

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 (*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 (*SubscribePubSubMessage) SetTimestamp

func (m *SubscribePubSubMessage) SetTimestamp(value time.Time) *SubscribePubSubMessage

Jump to

Keyboard shortcuts

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