Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAMQServer(s grpc.ServiceRegistrar, srv AMQServer)
- type AMQClient
- type AMQServer
- type AMQ_ReceiveMessagesClient
- type AMQ_ReceiveMessagesServer
- type AckMessageBatchRequest
- func (*AckMessageBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AckMessageBatchRequest) GetClientId() string
- func (x *AckMessageBatchRequest) GetMessageIds() []string
- func (*AckMessageBatchRequest) ProtoMessage()
- func (x *AckMessageBatchRequest) ProtoReflect() protoreflect.Message
- func (x *AckMessageBatchRequest) Reset()
- func (x *AckMessageBatchRequest) String() string
- type AckMessageRequest
- func (*AckMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AckMessageRequest) GetClientId() string
- func (x *AckMessageRequest) GetMessageId() string
- func (*AckMessageRequest) ProtoMessage()
- func (x *AckMessageRequest) ProtoReflect() protoreflect.Message
- func (x *AckMessageRequest) Reset()
- func (x *AckMessageRequest) String() string
- type ClientCapabilities
- func (*ClientCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *ClientCapabilities) GetMaxConcurrentMessages() int32
- func (x *ClientCapabilities) GetPrefetchCount() int32
- func (x *ClientCapabilities) GetSupportedEncodings() []string
- func (x *ClientCapabilities) GetSupportsBatch() bool
- func (*ClientCapabilities) ProtoMessage()
- func (x *ClientCapabilities) ProtoReflect() protoreflect.Message
- func (x *ClientCapabilities) Reset()
- func (x *ClientCapabilities) String() string
- type ClientInfo
- func (*ClientInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ClientInfo) GetCapabilities() *ClientCapabilities
- func (x *ClientInfo) GetId() string
- func (x *ClientInfo) GetLastSeen() *timestamppb.Timestamp
- func (x *ClientInfo) GetMessagesReceived() int64
- func (x *ClientInfo) GetMessagesSent() int64
- func (x *ClientInfo) GetMetadata() map[string]string
- func (x *ClientInfo) GetRegisteredAt() *timestamppb.Timestamp
- func (x *ClientInfo) GetSubscriptions() []string
- func (*ClientInfo) ProtoMessage()
- func (x *ClientInfo) ProtoReflect() protoreflect.Message
- func (x *ClientInfo) Reset()
- func (x *ClientInfo) String() string
- type CreateQueueRequest
- func (*CreateQueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateQueueRequest) GetConfig() *QueueConfig
- func (x *CreateQueueRequest) GetName() string
- func (x *CreateQueueRequest) GetType() QueueType
- func (*CreateQueueRequest) ProtoMessage()
- func (x *CreateQueueRequest) ProtoReflect() protoreflect.Message
- func (x *CreateQueueRequest) Reset()
- func (x *CreateQueueRequest) String() string
- type CreateQueueResponse
- func (*CreateQueueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateQueueResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *CreateQueueResponse) GetQueueId() string
- func (*CreateQueueResponse) ProtoMessage()
- func (x *CreateQueueResponse) ProtoReflect() protoreflect.Message
- func (x *CreateQueueResponse) Reset()
- func (x *CreateQueueResponse) String() string
- type DeleteQueueRequest
- func (*DeleteQueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteQueueRequest) GetForce() bool
- func (x *DeleteQueueRequest) GetName() string
- func (*DeleteQueueRequest) ProtoMessage()
- func (x *DeleteQueueRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteQueueRequest) Reset()
- func (x *DeleteQueueRequest) String() string
- type GetClientInfoRequest
- func (*GetClientInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetClientInfoRequest) GetClientId() string
- func (*GetClientInfoRequest) ProtoMessage()
- func (x *GetClientInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetClientInfoRequest) Reset()
- func (x *GetClientInfoRequest) String() string
- type GetMetricsRequest
- func (*GetMetricsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMetricsRequest) GetMetricNames() []string
- func (*GetMetricsRequest) ProtoMessage()
- func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message
- func (x *GetMetricsRequest) Reset()
- func (x *GetMetricsRequest) String() string
- type GetQueueStatsRequest
- func (*GetQueueStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetQueueStatsRequest) GetQueueName() string
- func (*GetQueueStatsRequest) ProtoMessage()
- func (x *GetQueueStatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetQueueStatsRequest) Reset()
- func (x *GetQueueStatsRequest) String() string
- type GetQueueStatsResponse
- func (*GetQueueStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetQueueStatsResponse) GetDequeueRate() float64
- func (x *GetQueueStatsResponse) GetEnqueueRate() float64
- func (x *GetQueueStatsResponse) GetMessageCount() int64
- func (x *GetQueueStatsResponse) GetMessagesInFlight() int64
- func (x *GetQueueStatsResponse) GetOldestMessage() *timestamppb.Timestamp
- func (x *GetQueueStatsResponse) GetSubscriberCount() int32
- func (x *GetQueueStatsResponse) GetTotalAcked() int64
- func (x *GetQueueStatsResponse) GetTotalDequeued() int64
- func (x *GetQueueStatsResponse) GetTotalEnqueued() int64
- func (*GetQueueStatsResponse) ProtoMessage()
- func (x *GetQueueStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetQueueStatsResponse) Reset()
- func (x *GetQueueStatsResponse) String() string
- type HeartbeatRequest
- func (*HeartbeatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HeartbeatRequest) GetClientId() string
- func (x *HeartbeatRequest) GetMetrics() map[string]float64
- func (*HeartbeatRequest) ProtoMessage()
- func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message
- func (x *HeartbeatRequest) Reset()
- func (x *HeartbeatRequest) String() string
- type ListClientsRequest
- func (*ListClientsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListClientsRequest) GetFilterMetadata() map[string]string
- func (x *ListClientsRequest) GetPageSize() int32
- func (x *ListClientsRequest) GetPageToken() string
- func (*ListClientsRequest) ProtoMessage()
- func (x *ListClientsRequest) ProtoReflect() protoreflect.Message
- func (x *ListClientsRequest) Reset()
- func (x *ListClientsRequest) String() string
- type ListClientsResponse
- func (*ListClientsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListClientsResponse) GetClients() []*ClientInfo
- func (x *ListClientsResponse) GetNextPageToken() string
- func (*ListClientsResponse) ProtoMessage()
- func (x *ListClientsResponse) ProtoReflect() protoreflect.Message
- func (x *ListClientsResponse) Reset()
- func (x *ListClientsResponse) String() string
- type ListQueuesRequest
- func (*ListQueuesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListQueuesRequest) GetFilter() string
- func (x *ListQueuesRequest) GetPageSize() int32
- func (x *ListQueuesRequest) GetPageToken() string
- func (*ListQueuesRequest) ProtoMessage()
- func (x *ListQueuesRequest) ProtoReflect() protoreflect.Message
- func (x *ListQueuesRequest) Reset()
- func (x *ListQueuesRequest) String() string
- type ListQueuesResponse
- func (*ListQueuesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListQueuesResponse) GetNextPageToken() string
- func (x *ListQueuesResponse) GetQueues() []*QueueInfo
- func (*ListQueuesResponse) ProtoMessage()
- func (x *ListQueuesResponse) ProtoReflect() protoreflect.Message
- func (x *ListQueuesResponse) Reset()
- func (x *ListQueuesResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetCorrelationId() string
- func (x *Message) GetCreatedAt() *timestamppb.Timestamp
- func (x *Message) GetExpiresAt() *timestamppb.Timestamp
- func (x *Message) GetFromClientId() string
- func (x *Message) GetId() string
- func (x *Message) GetMetadata() map[string]string
- func (x *Message) GetPayload() []byte
- func (x *Message) GetPriority() int32
- func (x *Message) GetReplyTo() string
- func (x *Message) GetRetryCount() int32
- func (x *Message) GetStatus() MessageStatus
- func (x *Message) GetTopic() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageOptions
- func (*MessageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MessageOptions) GetCorrelationId() string
- func (x *MessageOptions) GetMaxRetries() int32
- func (x *MessageOptions) GetMetadata() map[string]string
- func (x *MessageOptions) GetPriority() int32
- func (x *MessageOptions) GetReplyTo() string
- func (x *MessageOptions) GetTtl() *durationpb.Duration
- func (*MessageOptions) ProtoMessage()
- func (x *MessageOptions) ProtoReflect() protoreflect.Message
- func (x *MessageOptions) Reset()
- func (x *MessageOptions) String() string
- type MessageStatus
- func (MessageStatus) Descriptor() protoreflect.EnumDescriptor
- func (x MessageStatus) Enum() *MessageStatus
- func (MessageStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageStatus) Number() protoreflect.EnumNumber
- func (x MessageStatus) String() string
- func (MessageStatus) Type() protoreflect.EnumType
- type MetricValue
- func (*MetricValue) Descriptor() ([]byte, []int)deprecated
- func (x *MetricValue) GetDoubleValue() float64
- func (x *MetricValue) GetIntValue() int64
- func (x *MetricValue) GetStringValue() string
- func (x *MetricValue) GetValue() isMetricValue_Value
- func (*MetricValue) ProtoMessage()
- func (x *MetricValue) ProtoReflect() protoreflect.Message
- func (x *MetricValue) Reset()
- func (x *MetricValue) String() string
- type MetricValue_DoubleValue
- type MetricValue_IntValue
- type MetricValue_StringValue
- type MetricsResponse
- func (*MetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MetricsResponse) GetMetrics() map[string]*MetricValue
- func (x *MetricsResponse) GetTimestamp() *timestamppb.Timestamp
- func (*MetricsResponse) ProtoMessage()
- func (x *MetricsResponse) ProtoReflect() protoreflect.Message
- func (x *MetricsResponse) Reset()
- func (x *MetricsResponse) String() string
- type NackMessageRequest
- func (*NackMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NackMessageRequest) GetClientId() string
- func (x *NackMessageRequest) GetMessageId() string
- func (x *NackMessageRequest) GetReason() string
- func (x *NackMessageRequest) GetRequeue() bool
- func (*NackMessageRequest) ProtoMessage()
- func (x *NackMessageRequest) ProtoReflect() protoreflect.Message
- func (x *NackMessageRequest) Reset()
- func (x *NackMessageRequest) String() string
- type QueueConfig
- func (*QueueConfig) Descriptor() ([]byte, []int)deprecated
- func (x *QueueConfig) GetDeadLetterQueue() string
- func (x *QueueConfig) GetEnableDeadLetter() bool
- func (x *QueueConfig) GetMaxDepth() int32
- func (x *QueueConfig) GetMaxRetries() int32
- func (x *QueueConfig) GetMessageTtl() *durationpb.Duration
- func (*QueueConfig) ProtoMessage()
- func (x *QueueConfig) ProtoReflect() protoreflect.Message
- func (x *QueueConfig) Reset()
- func (x *QueueConfig) String() string
- type QueueInfo
- func (*QueueInfo) Descriptor() ([]byte, []int)deprecated
- func (x *QueueInfo) GetCreatedAt() *timestamppb.Timestamp
- func (x *QueueInfo) GetMessageCount() int64
- func (x *QueueInfo) GetName() string
- func (x *QueueInfo) GetSubscriberCount() int32
- func (x *QueueInfo) GetType() QueueType
- func (*QueueInfo) ProtoMessage()
- func (x *QueueInfo) ProtoReflect() protoreflect.Message
- func (x *QueueInfo) Reset()
- func (x *QueueInfo) String() string
- type QueueType
- type ReceiveMessagesRequest
- func (*ReceiveMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReceiveMessagesRequest) GetAutoAck() bool
- func (x *ReceiveMessagesRequest) GetClientId() string
- func (x *ReceiveMessagesRequest) GetMaxMessages() int32
- func (x *ReceiveMessagesRequest) GetWaitTime() *durationpb.Duration
- func (*ReceiveMessagesRequest) ProtoMessage()
- func (x *ReceiveMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *ReceiveMessagesRequest) Reset()
- func (x *ReceiveMessagesRequest) String() string
- type RegisterClientRequest
- func (*RegisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientRequest) GetCapabilities() *ClientCapabilities
- func (x *RegisterClientRequest) GetClientId() string
- func (x *RegisterClientRequest) GetMetadata() map[string]string
- func (*RegisterClientRequest) ProtoMessage()
- func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterClientRequest) Reset()
- func (x *RegisterClientRequest) String() string
- type RegisterClientResponse
- func (*RegisterClientResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterClientResponse) GetRegisteredAt() *timestamppb.Timestamp
- func (x *RegisterClientResponse) GetSessionId() string
- func (*RegisterClientResponse) ProtoMessage()
- func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterClientResponse) Reset()
- func (x *RegisterClientResponse) String() string
- type SendDirectRequest
- func (*SendDirectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendDirectRequest) GetFromClientId() string
- func (x *SendDirectRequest) GetOptions() *MessageOptions
- func (x *SendDirectRequest) GetPayload() []byte
- func (x *SendDirectRequest) GetToClientId() string
- func (*SendDirectRequest) ProtoMessage()
- func (x *SendDirectRequest) ProtoReflect() protoreflect.Message
- func (x *SendDirectRequest) Reset()
- func (x *SendDirectRequest) String() string
- type SendDirectResponse
- func (*SendDirectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendDirectResponse) GetMessageId() string
- func (x *SendDirectResponse) GetSentAt() *timestamppb.Timestamp
- func (*SendDirectResponse) ProtoMessage()
- func (x *SendDirectResponse) ProtoReflect() protoreflect.Message
- func (x *SendDirectResponse) Reset()
- func (x *SendDirectResponse) String() string
- type SubmitTaskBatchRequest
- func (*SubmitTaskBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTaskBatchRequest) GetClientId() string
- func (x *SubmitTaskBatchRequest) GetItems() []*TaskItem
- func (*SubmitTaskBatchRequest) ProtoMessage()
- func (x *SubmitTaskBatchRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitTaskBatchRequest) Reset()
- func (x *SubmitTaskBatchRequest) String() string
- type SubmitTaskBatchResponse
- func (*SubmitTaskBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTaskBatchResponse) GetResults() []*TaskResult
- func (*SubmitTaskBatchResponse) ProtoMessage()
- func (x *SubmitTaskBatchResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitTaskBatchResponse) Reset()
- func (x *SubmitTaskBatchResponse) String() string
- type SubmitTaskRequest
- func (*SubmitTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTaskRequest) GetClientId() string
- func (x *SubmitTaskRequest) GetOptions() *MessageOptions
- func (x *SubmitTaskRequest) GetPayload() []byte
- func (x *SubmitTaskRequest) GetTopic() string
- func (*SubmitTaskRequest) ProtoMessage()
- func (x *SubmitTaskRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitTaskRequest) Reset()
- func (x *SubmitTaskRequest) String() string
- type SubmitTaskResponse
- func (*SubmitTaskResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTaskResponse) GetMessageId() string
- func (x *SubmitTaskResponse) GetSubmittedAt() *timestamppb.Timestamp
- func (*SubmitTaskResponse) ProtoMessage()
- func (x *SubmitTaskResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitTaskResponse) Reset()
- func (x *SubmitTaskResponse) String() string
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeRequest) GetClientId() string
- func (x *SubscribeRequest) GetOptions() *SubscriptionOptions
- func (x *SubscribeRequest) GetTopics() []string
- func (*SubscribeRequest) ProtoMessage()
- func (x *SubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeRequest) Reset()
- func (x *SubscribeRequest) String() string
- type SubscriptionOptions
- func (*SubscriptionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *SubscriptionOptions) GetExclusive() bool
- func (x *SubscriptionOptions) GetFilterExpression() string
- func (x *SubscriptionOptions) GetPriority() int32
- func (*SubscriptionOptions) ProtoMessage()
- func (x *SubscriptionOptions) ProtoReflect() protoreflect.Message
- func (x *SubscriptionOptions) Reset()
- func (x *SubscriptionOptions) String() string
- type TaskItem
- func (*TaskItem) Descriptor() ([]byte, []int)deprecated
- func (x *TaskItem) GetOptions() *MessageOptions
- func (x *TaskItem) GetPayload() []byte
- func (x *TaskItem) GetTopic() string
- func (*TaskItem) ProtoMessage()
- func (x *TaskItem) ProtoReflect() protoreflect.Message
- func (x *TaskItem) Reset()
- func (x *TaskItem) String() string
- type TaskResult
- func (*TaskResult) Descriptor() ([]byte, []int)deprecated
- func (x *TaskResult) GetError() string
- func (x *TaskResult) GetMessageId() string
- func (x *TaskResult) GetSuccess() bool
- func (*TaskResult) ProtoMessage()
- func (x *TaskResult) ProtoReflect() protoreflect.Message
- func (x *TaskResult) Reset()
- func (x *TaskResult) String() string
- type UnimplementedAMQServer
- func (UnimplementedAMQServer) AckMessage(context.Context, *AckMessageRequest) (*emptypb.Empty, error)
- func (UnimplementedAMQServer) AckMessageBatch(context.Context, *AckMessageBatchRequest) (*emptypb.Empty, error)
- func (UnimplementedAMQServer) CreateQueue(context.Context, *CreateQueueRequest) (*CreateQueueResponse, error)
- func (UnimplementedAMQServer) DeleteQueue(context.Context, *DeleteQueueRequest) (*emptypb.Empty, error)
- func (UnimplementedAMQServer) GetClientInfo(context.Context, *GetClientInfoRequest) (*ClientInfo, error)
- func (UnimplementedAMQServer) GetMetrics(context.Context, *GetMetricsRequest) (*MetricsResponse, error)
- func (UnimplementedAMQServer) GetQueueStats(context.Context, *GetQueueStatsRequest) (*GetQueueStatsResponse, error)
- func (UnimplementedAMQServer) Heartbeat(context.Context, *HeartbeatRequest) (*emptypb.Empty, error)
- func (UnimplementedAMQServer) ListClients(context.Context, *ListClientsRequest) (*ListClientsResponse, error)
- func (UnimplementedAMQServer) ListQueues(context.Context, *ListQueuesRequest) (*ListQueuesResponse, error)
- func (UnimplementedAMQServer) NackMessage(context.Context, *NackMessageRequest) (*emptypb.Empty, error)
- func (UnimplementedAMQServer) ReceiveMessages(*ReceiveMessagesRequest, grpc.ServerStreamingServer[Message]) error
- func (UnimplementedAMQServer) RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
- func (UnimplementedAMQServer) SendDirect(context.Context, *SendDirectRequest) (*SendDirectResponse, error)
- func (UnimplementedAMQServer) SubmitTask(context.Context, *SubmitTaskRequest) (*SubmitTaskResponse, error)
- func (UnimplementedAMQServer) SubmitTaskBatch(context.Context, *SubmitTaskBatchRequest) (*SubmitTaskBatchResponse, error)
- func (UnimplementedAMQServer) Subscribe(context.Context, *SubscribeRequest) (*emptypb.Empty, error)
- func (UnimplementedAMQServer) UnregisterClient(context.Context, *UnregisterClientRequest) (*emptypb.Empty, error)
- func (UnimplementedAMQServer) Unsubscribe(context.Context, *UnsubscribeRequest) (*emptypb.Empty, error)
- type UnregisterClientRequest
- func (*UnregisterClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterClientRequest) GetClientId() string
- func (*UnregisterClientRequest) ProtoMessage()
- func (x *UnregisterClientRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterClientRequest) Reset()
- func (x *UnregisterClientRequest) String() string
- type UnsafeAMQServer
- type UnsubscribeRequest
- func (*UnsubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnsubscribeRequest) GetClientId() string
- func (x *UnsubscribeRequest) GetTopics() []string
- func (*UnsubscribeRequest) ProtoMessage()
- func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *UnsubscribeRequest) Reset()
- func (x *UnsubscribeRequest) String() string
Constants ¶
const ( AMQ_RegisterClient_FullMethodName = "/amq.v1.AMQ/RegisterClient" AMQ_UnregisterClient_FullMethodName = "/amq.v1.AMQ/UnregisterClient" AMQ_Heartbeat_FullMethodName = "/amq.v1.AMQ/Heartbeat" AMQ_CreateQueue_FullMethodName = "/amq.v1.AMQ/CreateQueue" AMQ_DeleteQueue_FullMethodName = "/amq.v1.AMQ/DeleteQueue" AMQ_ListQueues_FullMethodName = "/amq.v1.AMQ/ListQueues" AMQ_GetQueueStats_FullMethodName = "/amq.v1.AMQ/GetQueueStats" AMQ_Subscribe_FullMethodName = "/amq.v1.AMQ/Subscribe" AMQ_Unsubscribe_FullMethodName = "/amq.v1.AMQ/Unsubscribe" AMQ_SubmitTask_FullMethodName = "/amq.v1.AMQ/SubmitTask" AMQ_SendDirect_FullMethodName = "/amq.v1.AMQ/SendDirect" AMQ_ReceiveMessages_FullMethodName = "/amq.v1.AMQ/ReceiveMessages" AMQ_AckMessage_FullMethodName = "/amq.v1.AMQ/AckMessage" AMQ_NackMessage_FullMethodName = "/amq.v1.AMQ/NackMessage" AMQ_SubmitTaskBatch_FullMethodName = "/amq.v1.AMQ/SubmitTaskBatch" AMQ_AckMessageBatch_FullMethodName = "/amq.v1.AMQ/AckMessageBatch" AMQ_GetClientInfo_FullMethodName = "/amq.v1.AMQ/GetClientInfo" AMQ_ListClients_FullMethodName = "/amq.v1.AMQ/ListClients" AMQ_GetMetrics_FullMethodName = "/amq.v1.AMQ/GetMetrics" )
Variables ¶
var ( QueueType_name = map[int32]string{ 0: "QUEUE_TYPE_UNSPECIFIED", 1: "QUEUE_TYPE_TASK", 2: "QUEUE_TYPE_DIRECT", } QueueType_value = map[string]int32{ "QUEUE_TYPE_UNSPECIFIED": 0, "QUEUE_TYPE_TASK": 1, "QUEUE_TYPE_DIRECT": 2, } )
Enum value maps for QueueType.
var ( MessageStatus_name = map[int32]string{ 0: "MESSAGE_STATUS_UNSPECIFIED", 1: "MESSAGE_STATUS_PENDING", 2: "MESSAGE_STATUS_DELIVERED", 3: "MESSAGE_STATUS_ACKNOWLEDGED", 4: "MESSAGE_STATUS_FAILED", 5: "MESSAGE_STATUS_EXPIRED", } MessageStatus_value = map[string]int32{ "MESSAGE_STATUS_UNSPECIFIED": 0, "MESSAGE_STATUS_PENDING": 1, "MESSAGE_STATUS_DELIVERED": 2, "MESSAGE_STATUS_ACKNOWLEDGED": 3, "MESSAGE_STATUS_FAILED": 4, "MESSAGE_STATUS_EXPIRED": 5, } )
Enum value maps for MessageStatus.
var AMQ_ServiceDesc = grpc.ServiceDesc{ ServiceName: "amq.v1.AMQ", HandlerType: (*AMQServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterClient", Handler: _AMQ_RegisterClient_Handler, }, { MethodName: "UnregisterClient", Handler: _AMQ_UnregisterClient_Handler, }, { MethodName: "Heartbeat", Handler: _AMQ_Heartbeat_Handler, }, { MethodName: "CreateQueue", Handler: _AMQ_CreateQueue_Handler, }, { MethodName: "DeleteQueue", Handler: _AMQ_DeleteQueue_Handler, }, { MethodName: "ListQueues", Handler: _AMQ_ListQueues_Handler, }, { MethodName: "GetQueueStats", Handler: _AMQ_GetQueueStats_Handler, }, { MethodName: "Subscribe", Handler: _AMQ_Subscribe_Handler, }, { MethodName: "Unsubscribe", Handler: _AMQ_Unsubscribe_Handler, }, { MethodName: "SubmitTask", Handler: _AMQ_SubmitTask_Handler, }, { MethodName: "SendDirect", Handler: _AMQ_SendDirect_Handler, }, { MethodName: "AckMessage", Handler: _AMQ_AckMessage_Handler, }, { MethodName: "NackMessage", Handler: _AMQ_NackMessage_Handler, }, { MethodName: "SubmitTaskBatch", Handler: _AMQ_SubmitTaskBatch_Handler, }, { MethodName: "AckMessageBatch", Handler: _AMQ_AckMessageBatch_Handler, }, { MethodName: "GetClientInfo", Handler: _AMQ_GetClientInfo_Handler, }, { MethodName: "ListClients", Handler: _AMQ_ListClients_Handler, }, { MethodName: "GetMetrics", Handler: _AMQ_GetMetrics_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ReceiveMessages", Handler: _AMQ_ReceiveMessages_Handler, ServerStreams: true, }, }, Metadata: "api/proto/amq.proto", }
AMQ_ServiceDesc is the grpc.ServiceDesc for AMQ service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_proto_amq_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAMQServer ¶
func RegisterAMQServer(s grpc.ServiceRegistrar, srv AMQServer)
Types ¶
type AMQClient ¶
type AMQClient interface {
// Client management
RegisterClient(ctx context.Context, in *RegisterClientRequest, opts ...grpc.CallOption) (*RegisterClientResponse, error)
UnregisterClient(ctx context.Context, in *UnregisterClientRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Queue management
CreateQueue(ctx context.Context, in *CreateQueueRequest, opts ...grpc.CallOption) (*CreateQueueResponse, error)
DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
ListQueues(ctx context.Context, in *ListQueuesRequest, opts ...grpc.CallOption) (*ListQueuesResponse, error)
GetQueueStats(ctx context.Context, in *GetQueueStatsRequest, opts ...grpc.CallOption) (*GetQueueStatsResponse, error)
// Subscription management
Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
Unsubscribe(ctx context.Context, in *UnsubscribeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Message operations
SubmitTask(ctx context.Context, in *SubmitTaskRequest, opts ...grpc.CallOption) (*SubmitTaskResponse, error)
SendDirect(ctx context.Context, in *SendDirectRequest, opts ...grpc.CallOption) (*SendDirectResponse, error)
ReceiveMessages(ctx context.Context, in *ReceiveMessagesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Message], error)
AckMessage(ctx context.Context, in *AckMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
NackMessage(ctx context.Context, in *NackMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Batch operations for performance
SubmitTaskBatch(ctx context.Context, in *SubmitTaskBatchRequest, opts ...grpc.CallOption) (*SubmitTaskBatchResponse, error)
AckMessageBatch(ctx context.Context, in *AckMessageBatchRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Monitoring
GetClientInfo(ctx context.Context, in *GetClientInfoRequest, opts ...grpc.CallOption) (*ClientInfo, error)
ListClients(ctx context.Context, in *ListClientsRequest, opts ...grpc.CallOption) (*ListClientsResponse, error)
GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*MetricsResponse, error)
}
AMQClient is the client API for AMQ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
AMQ service provides high-performance message queue operations for agents
func NewAMQClient ¶
func NewAMQClient(cc grpc.ClientConnInterface) AMQClient
type AMQServer ¶
type AMQServer interface {
// Client management
RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
UnregisterClient(context.Context, *UnregisterClientRequest) (*emptypb.Empty, error)
Heartbeat(context.Context, *HeartbeatRequest) (*emptypb.Empty, error)
// Queue management
CreateQueue(context.Context, *CreateQueueRequest) (*CreateQueueResponse, error)
DeleteQueue(context.Context, *DeleteQueueRequest) (*emptypb.Empty, error)
ListQueues(context.Context, *ListQueuesRequest) (*ListQueuesResponse, error)
GetQueueStats(context.Context, *GetQueueStatsRequest) (*GetQueueStatsResponse, error)
// Subscription management
Subscribe(context.Context, *SubscribeRequest) (*emptypb.Empty, error)
Unsubscribe(context.Context, *UnsubscribeRequest) (*emptypb.Empty, error)
// Message operations
SubmitTask(context.Context, *SubmitTaskRequest) (*SubmitTaskResponse, error)
SendDirect(context.Context, *SendDirectRequest) (*SendDirectResponse, error)
ReceiveMessages(*ReceiveMessagesRequest, grpc.ServerStreamingServer[Message]) error
AckMessage(context.Context, *AckMessageRequest) (*emptypb.Empty, error)
NackMessage(context.Context, *NackMessageRequest) (*emptypb.Empty, error)
// Batch operations for performance
SubmitTaskBatch(context.Context, *SubmitTaskBatchRequest) (*SubmitTaskBatchResponse, error)
AckMessageBatch(context.Context, *AckMessageBatchRequest) (*emptypb.Empty, error)
// Monitoring
GetClientInfo(context.Context, *GetClientInfoRequest) (*ClientInfo, error)
ListClients(context.Context, *ListClientsRequest) (*ListClientsResponse, error)
GetMetrics(context.Context, *GetMetricsRequest) (*MetricsResponse, error)
// contains filtered or unexported methods
}
AMQServer is the server API for AMQ service. All implementations must embed UnimplementedAMQServer for forward compatibility.
AMQ service provides high-performance message queue operations for agents
type AMQ_ReceiveMessagesClient ¶
type AMQ_ReceiveMessagesClient = grpc.ServerStreamingClient[Message]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AMQ_ReceiveMessagesServer ¶
type AMQ_ReceiveMessagesServer = grpc.ServerStreamingServer[Message]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type AckMessageBatchRequest ¶
type AckMessageBatchRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
MessageIds []string `protobuf:"bytes,2,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"`
// contains filtered or unexported fields
}
func (*AckMessageBatchRequest) Descriptor
deprecated
func (*AckMessageBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use AckMessageBatchRequest.ProtoReflect.Descriptor instead.
func (*AckMessageBatchRequest) GetClientId ¶
func (x *AckMessageBatchRequest) GetClientId() string
func (*AckMessageBatchRequest) GetMessageIds ¶
func (x *AckMessageBatchRequest) GetMessageIds() []string
func (*AckMessageBatchRequest) ProtoMessage ¶
func (*AckMessageBatchRequest) ProtoMessage()
func (*AckMessageBatchRequest) ProtoReflect ¶
func (x *AckMessageBatchRequest) ProtoReflect() protoreflect.Message
func (*AckMessageBatchRequest) Reset ¶
func (x *AckMessageBatchRequest) Reset()
func (*AckMessageBatchRequest) String ¶
func (x *AckMessageBatchRequest) String() string
type AckMessageRequest ¶
type AckMessageRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
// contains filtered or unexported fields
}
func (*AckMessageRequest) Descriptor
deprecated
func (*AckMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use AckMessageRequest.ProtoReflect.Descriptor instead.
func (*AckMessageRequest) GetClientId ¶
func (x *AckMessageRequest) GetClientId() string
func (*AckMessageRequest) GetMessageId ¶
func (x *AckMessageRequest) GetMessageId() string
func (*AckMessageRequest) ProtoMessage ¶
func (*AckMessageRequest) ProtoMessage()
func (*AckMessageRequest) ProtoReflect ¶
func (x *AckMessageRequest) ProtoReflect() protoreflect.Message
func (*AckMessageRequest) Reset ¶
func (x *AckMessageRequest) Reset()
func (*AckMessageRequest) String ¶
func (x *AckMessageRequest) String() string
type ClientCapabilities ¶
type ClientCapabilities struct {
MaxConcurrentMessages int32 `` /* 127-byte string literal not displayed */
SupportedEncodings []string `protobuf:"bytes,2,rep,name=supported_encodings,json=supportedEncodings,proto3" json:"supported_encodings,omitempty"`
SupportsBatch bool `protobuf:"varint,3,opt,name=supports_batch,json=supportsBatch,proto3" json:"supports_batch,omitempty"`
PrefetchCount int32 `protobuf:"varint,4,opt,name=prefetch_count,json=prefetchCount,proto3" json:"prefetch_count,omitempty"`
// contains filtered or unexported fields
}
func (*ClientCapabilities) Descriptor
deprecated
func (*ClientCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use ClientCapabilities.ProtoReflect.Descriptor instead.
func (*ClientCapabilities) GetMaxConcurrentMessages ¶
func (x *ClientCapabilities) GetMaxConcurrentMessages() int32
func (*ClientCapabilities) GetPrefetchCount ¶
func (x *ClientCapabilities) GetPrefetchCount() int32
func (*ClientCapabilities) GetSupportedEncodings ¶
func (x *ClientCapabilities) GetSupportedEncodings() []string
func (*ClientCapabilities) GetSupportsBatch ¶
func (x *ClientCapabilities) GetSupportsBatch() bool
func (*ClientCapabilities) ProtoMessage ¶
func (*ClientCapabilities) ProtoMessage()
func (*ClientCapabilities) ProtoReflect ¶
func (x *ClientCapabilities) ProtoReflect() protoreflect.Message
func (*ClientCapabilities) Reset ¶
func (x *ClientCapabilities) Reset()
func (*ClientCapabilities) String ¶
func (x *ClientCapabilities) String() string
type ClientInfo ¶
type ClientInfo struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
RegisteredAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=registered_at,json=registeredAt,proto3" json:"registered_at,omitempty"`
LastSeen *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
Subscriptions []string `protobuf:"bytes,5,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
MessagesSent int64 `protobuf:"varint,6,opt,name=messages_sent,json=messagesSent,proto3" json:"messages_sent,omitempty"`
MessagesReceived int64 `protobuf:"varint,7,opt,name=messages_received,json=messagesReceived,proto3" json:"messages_received,omitempty"`
Capabilities *ClientCapabilities `protobuf:"bytes,8,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
Client info
func (*ClientInfo) Descriptor
deprecated
func (*ClientInfo) Descriptor() ([]byte, []int)
Deprecated: Use ClientInfo.ProtoReflect.Descriptor instead.
func (*ClientInfo) GetCapabilities ¶
func (x *ClientInfo) GetCapabilities() *ClientCapabilities
func (*ClientInfo) GetId ¶
func (x *ClientInfo) GetId() string
func (*ClientInfo) GetLastSeen ¶
func (x *ClientInfo) GetLastSeen() *timestamppb.Timestamp
func (*ClientInfo) GetMessagesReceived ¶
func (x *ClientInfo) GetMessagesReceived() int64
func (*ClientInfo) GetMessagesSent ¶
func (x *ClientInfo) GetMessagesSent() int64
func (*ClientInfo) GetMetadata ¶
func (x *ClientInfo) GetMetadata() map[string]string
func (*ClientInfo) GetRegisteredAt ¶
func (x *ClientInfo) GetRegisteredAt() *timestamppb.Timestamp
func (*ClientInfo) GetSubscriptions ¶
func (x *ClientInfo) GetSubscriptions() []string
func (*ClientInfo) ProtoMessage ¶
func (*ClientInfo) ProtoMessage()
func (*ClientInfo) ProtoReflect ¶
func (x *ClientInfo) ProtoReflect() protoreflect.Message
func (*ClientInfo) Reset ¶
func (x *ClientInfo) Reset()
func (*ClientInfo) String ¶
func (x *ClientInfo) String() string
type CreateQueueRequest ¶
type CreateQueueRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type QueueType `protobuf:"varint,2,opt,name=type,proto3,enum=amq.v1.QueueType" json:"type,omitempty"`
Config *QueueConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
Queue management messages
func (*CreateQueueRequest) Descriptor
deprecated
func (*CreateQueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateQueueRequest.ProtoReflect.Descriptor instead.
func (*CreateQueueRequest) GetConfig ¶
func (x *CreateQueueRequest) GetConfig() *QueueConfig
func (*CreateQueueRequest) GetName ¶
func (x *CreateQueueRequest) GetName() string
func (*CreateQueueRequest) GetType ¶
func (x *CreateQueueRequest) GetType() QueueType
func (*CreateQueueRequest) ProtoMessage ¶
func (*CreateQueueRequest) ProtoMessage()
func (*CreateQueueRequest) ProtoReflect ¶
func (x *CreateQueueRequest) ProtoReflect() protoreflect.Message
func (*CreateQueueRequest) Reset ¶
func (x *CreateQueueRequest) Reset()
func (*CreateQueueRequest) String ¶
func (x *CreateQueueRequest) String() string
type CreateQueueResponse ¶
type CreateQueueResponse struct {
QueueId string `protobuf:"bytes,1,opt,name=queue_id,json=queueId,proto3" json:"queue_id,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// contains filtered or unexported fields
}
func (*CreateQueueResponse) Descriptor
deprecated
func (*CreateQueueResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateQueueResponse.ProtoReflect.Descriptor instead.
func (*CreateQueueResponse) GetCreatedAt ¶
func (x *CreateQueueResponse) GetCreatedAt() *timestamppb.Timestamp
func (*CreateQueueResponse) GetQueueId ¶
func (x *CreateQueueResponse) GetQueueId() string
func (*CreateQueueResponse) ProtoMessage ¶
func (*CreateQueueResponse) ProtoMessage()
func (*CreateQueueResponse) ProtoReflect ¶
func (x *CreateQueueResponse) ProtoReflect() protoreflect.Message
func (*CreateQueueResponse) Reset ¶
func (x *CreateQueueResponse) Reset()
func (*CreateQueueResponse) String ¶
func (x *CreateQueueResponse) String() string
type DeleteQueueRequest ¶
type DeleteQueueRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` // Delete even if not empty
// contains filtered or unexported fields
}
func (*DeleteQueueRequest) Descriptor
deprecated
func (*DeleteQueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteQueueRequest.ProtoReflect.Descriptor instead.
func (*DeleteQueueRequest) GetForce ¶
func (x *DeleteQueueRequest) GetForce() bool
func (*DeleteQueueRequest) GetName ¶
func (x *DeleteQueueRequest) GetName() string
func (*DeleteQueueRequest) ProtoMessage ¶
func (*DeleteQueueRequest) ProtoMessage()
func (*DeleteQueueRequest) ProtoReflect ¶
func (x *DeleteQueueRequest) ProtoReflect() protoreflect.Message
func (*DeleteQueueRequest) Reset ¶
func (x *DeleteQueueRequest) Reset()
func (*DeleteQueueRequest) String ¶
func (x *DeleteQueueRequest) String() string
type GetClientInfoRequest ¶
type GetClientInfoRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetClientInfoRequest) Descriptor
deprecated
func (*GetClientInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetClientInfoRequest.ProtoReflect.Descriptor instead.
func (*GetClientInfoRequest) GetClientId ¶
func (x *GetClientInfoRequest) GetClientId() string
func (*GetClientInfoRequest) ProtoMessage ¶
func (*GetClientInfoRequest) ProtoMessage()
func (*GetClientInfoRequest) ProtoReflect ¶
func (x *GetClientInfoRequest) ProtoReflect() protoreflect.Message
func (*GetClientInfoRequest) Reset ¶
func (x *GetClientInfoRequest) Reset()
func (*GetClientInfoRequest) String ¶
func (x *GetClientInfoRequest) String() string
type GetMetricsRequest ¶
type GetMetricsRequest struct {
MetricNames []string `protobuf:"bytes,1,rep,name=metric_names,json=metricNames,proto3" json:"metric_names,omitempty"`
// contains filtered or unexported fields
}
Monitoring
func (*GetMetricsRequest) Descriptor
deprecated
func (*GetMetricsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead.
func (*GetMetricsRequest) GetMetricNames ¶
func (x *GetMetricsRequest) GetMetricNames() []string
func (*GetMetricsRequest) ProtoMessage ¶
func (*GetMetricsRequest) ProtoMessage()
func (*GetMetricsRequest) ProtoReflect ¶
func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message
func (*GetMetricsRequest) Reset ¶
func (x *GetMetricsRequest) Reset()
func (*GetMetricsRequest) String ¶
func (x *GetMetricsRequest) String() string
type GetQueueStatsRequest ¶
type GetQueueStatsRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queue_name,json=queueName,proto3" json:"queue_name,omitempty"`
// contains filtered or unexported fields
}
func (*GetQueueStatsRequest) Descriptor
deprecated
func (*GetQueueStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetQueueStatsRequest.ProtoReflect.Descriptor instead.
func (*GetQueueStatsRequest) GetQueueName ¶
func (x *GetQueueStatsRequest) GetQueueName() string
func (*GetQueueStatsRequest) ProtoMessage ¶
func (*GetQueueStatsRequest) ProtoMessage()
func (*GetQueueStatsRequest) ProtoReflect ¶
func (x *GetQueueStatsRequest) ProtoReflect() protoreflect.Message
func (*GetQueueStatsRequest) Reset ¶
func (x *GetQueueStatsRequest) Reset()
func (*GetQueueStatsRequest) String ¶
func (x *GetQueueStatsRequest) String() string
type GetQueueStatsResponse ¶
type GetQueueStatsResponse struct {
MessageCount int64 `protobuf:"varint,1,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
MessagesInFlight int64 `protobuf:"varint,2,opt,name=messages_in_flight,json=messagesInFlight,proto3" json:"messages_in_flight,omitempty"`
SubscriberCount int32 `protobuf:"varint,3,opt,name=subscriber_count,json=subscriberCount,proto3" json:"subscriber_count,omitempty"`
EnqueueRate float64 `protobuf:"fixed64,4,opt,name=enqueue_rate,json=enqueueRate,proto3" json:"enqueue_rate,omitempty"` // messages per second
DequeueRate float64 `protobuf:"fixed64,5,opt,name=dequeue_rate,json=dequeueRate,proto3" json:"dequeue_rate,omitempty"` // messages per second
TotalEnqueued int64 `protobuf:"varint,6,opt,name=total_enqueued,json=totalEnqueued,proto3" json:"total_enqueued,omitempty"`
TotalDequeued int64 `protobuf:"varint,7,opt,name=total_dequeued,json=totalDequeued,proto3" json:"total_dequeued,omitempty"`
TotalAcked int64 `protobuf:"varint,8,opt,name=total_acked,json=totalAcked,proto3" json:"total_acked,omitempty"`
OldestMessage *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=oldest_message,json=oldestMessage,proto3" json:"oldest_message,omitempty"`
// contains filtered or unexported fields
}
func (*GetQueueStatsResponse) Descriptor
deprecated
func (*GetQueueStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetQueueStatsResponse.ProtoReflect.Descriptor instead.
func (*GetQueueStatsResponse) GetDequeueRate ¶
func (x *GetQueueStatsResponse) GetDequeueRate() float64
func (*GetQueueStatsResponse) GetEnqueueRate ¶
func (x *GetQueueStatsResponse) GetEnqueueRate() float64
func (*GetQueueStatsResponse) GetMessageCount ¶
func (x *GetQueueStatsResponse) GetMessageCount() int64
func (*GetQueueStatsResponse) GetMessagesInFlight ¶
func (x *GetQueueStatsResponse) GetMessagesInFlight() int64
func (*GetQueueStatsResponse) GetOldestMessage ¶
func (x *GetQueueStatsResponse) GetOldestMessage() *timestamppb.Timestamp
func (*GetQueueStatsResponse) GetSubscriberCount ¶
func (x *GetQueueStatsResponse) GetSubscriberCount() int32
func (*GetQueueStatsResponse) GetTotalAcked ¶
func (x *GetQueueStatsResponse) GetTotalAcked() int64
func (*GetQueueStatsResponse) GetTotalDequeued ¶
func (x *GetQueueStatsResponse) GetTotalDequeued() int64
func (*GetQueueStatsResponse) GetTotalEnqueued ¶
func (x *GetQueueStatsResponse) GetTotalEnqueued() int64
func (*GetQueueStatsResponse) ProtoMessage ¶
func (*GetQueueStatsResponse) ProtoMessage()
func (*GetQueueStatsResponse) ProtoReflect ¶
func (x *GetQueueStatsResponse) ProtoReflect() protoreflect.Message
func (*GetQueueStatsResponse) Reset ¶
func (x *GetQueueStatsResponse) Reset()
func (*GetQueueStatsResponse) String ¶
func (x *GetQueueStatsResponse) String() string
type HeartbeatRequest ¶
type HeartbeatRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Metrics map[string]float64 `` // CPU usage, memory, etc
/* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*HeartbeatRequest) Descriptor
deprecated
func (*HeartbeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.
func (*HeartbeatRequest) GetClientId ¶
func (x *HeartbeatRequest) GetClientId() string
func (*HeartbeatRequest) GetMetrics ¶
func (x *HeartbeatRequest) GetMetrics() map[string]float64
func (*HeartbeatRequest) ProtoMessage ¶
func (*HeartbeatRequest) ProtoMessage()
func (*HeartbeatRequest) ProtoReflect ¶
func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message
func (*HeartbeatRequest) Reset ¶
func (x *HeartbeatRequest) Reset()
func (*HeartbeatRequest) String ¶
func (x *HeartbeatRequest) String() string
type ListClientsRequest ¶
type ListClientsRequest struct {
FilterMetadata map[string]string `` /* 177-byte string literal not displayed */
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListClientsRequest) Descriptor
deprecated
func (*ListClientsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListClientsRequest.ProtoReflect.Descriptor instead.
func (*ListClientsRequest) GetFilterMetadata ¶
func (x *ListClientsRequest) GetFilterMetadata() map[string]string
func (*ListClientsRequest) GetPageSize ¶
func (x *ListClientsRequest) GetPageSize() int32
func (*ListClientsRequest) GetPageToken ¶
func (x *ListClientsRequest) GetPageToken() string
func (*ListClientsRequest) ProtoMessage ¶
func (*ListClientsRequest) ProtoMessage()
func (*ListClientsRequest) ProtoReflect ¶
func (x *ListClientsRequest) ProtoReflect() protoreflect.Message
func (*ListClientsRequest) Reset ¶
func (x *ListClientsRequest) Reset()
func (*ListClientsRequest) String ¶
func (x *ListClientsRequest) String() string
type ListClientsResponse ¶
type ListClientsResponse struct {
Clients []*ClientInfo `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListClientsResponse) Descriptor
deprecated
func (*ListClientsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListClientsResponse.ProtoReflect.Descriptor instead.
func (*ListClientsResponse) GetClients ¶
func (x *ListClientsResponse) GetClients() []*ClientInfo
func (*ListClientsResponse) GetNextPageToken ¶
func (x *ListClientsResponse) GetNextPageToken() string
func (*ListClientsResponse) ProtoMessage ¶
func (*ListClientsResponse) ProtoMessage()
func (*ListClientsResponse) ProtoReflect ¶
func (x *ListClientsResponse) ProtoReflect() protoreflect.Message
func (*ListClientsResponse) Reset ¶
func (x *ListClientsResponse) Reset()
func (*ListClientsResponse) String ¶
func (x *ListClientsResponse) String() string
type ListQueuesRequest ¶
type ListQueuesRequest struct {
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListQueuesRequest) Descriptor
deprecated
func (*ListQueuesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListQueuesRequest.ProtoReflect.Descriptor instead.
func (*ListQueuesRequest) GetFilter ¶
func (x *ListQueuesRequest) GetFilter() string
func (*ListQueuesRequest) GetPageSize ¶
func (x *ListQueuesRequest) GetPageSize() int32
func (*ListQueuesRequest) GetPageToken ¶
func (x *ListQueuesRequest) GetPageToken() string
func (*ListQueuesRequest) ProtoMessage ¶
func (*ListQueuesRequest) ProtoMessage()
func (*ListQueuesRequest) ProtoReflect ¶
func (x *ListQueuesRequest) ProtoReflect() protoreflect.Message
func (*ListQueuesRequest) Reset ¶
func (x *ListQueuesRequest) Reset()
func (*ListQueuesRequest) String ¶
func (x *ListQueuesRequest) String() string
type ListQueuesResponse ¶
type ListQueuesResponse struct {
Queues []*QueueInfo `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"`
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListQueuesResponse) Descriptor
deprecated
func (*ListQueuesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListQueuesResponse.ProtoReflect.Descriptor instead.
func (*ListQueuesResponse) GetNextPageToken ¶
func (x *ListQueuesResponse) GetNextPageToken() string
func (*ListQueuesResponse) GetQueues ¶
func (x *ListQueuesResponse) GetQueues() []*QueueInfo
func (*ListQueuesResponse) ProtoMessage ¶
func (*ListQueuesResponse) ProtoMessage()
func (*ListQueuesResponse) ProtoReflect ¶
func (x *ListQueuesResponse) ProtoReflect() protoreflect.Message
func (*ListQueuesResponse) Reset ¶
func (x *ListQueuesResponse) Reset()
func (*ListQueuesResponse) String ¶
func (x *ListQueuesResponse) String() string
type Message ¶
type Message struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
FromClientId string `protobuf:"bytes,2,opt,name=from_client_id,json=fromClientId,proto3" json:"from_client_id,omitempty"`
Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
Status MessageStatus `protobuf:"varint,5,opt,name=status,proto3,enum=amq.v1.MessageStatus" json:"status,omitempty"`
Priority int32 `protobuf:"varint,6,opt,name=priority,proto3" json:"priority,omitempty"`
RetryCount int32 `protobuf:"varint,7,opt,name=retry_count,json=retryCount,proto3" json:"retry_count,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
CorrelationId string `protobuf:"bytes,11,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"`
ReplyTo string `protobuf:"bytes,12,opt,name=reply_to,json=replyTo,proto3" json:"reply_to,omitempty"`
// contains filtered or unexported fields
}
func (*Message) Descriptor
deprecated
func (*Message) GetCorrelationId ¶
func (*Message) GetCreatedAt ¶
func (x *Message) GetCreatedAt() *timestamppb.Timestamp
func (*Message) GetExpiresAt ¶
func (x *Message) GetExpiresAt() *timestamppb.Timestamp
func (*Message) GetFromClientId ¶
func (*Message) GetMetadata ¶
func (*Message) GetPayload ¶
func (*Message) GetPriority ¶
func (*Message) GetReplyTo ¶
func (*Message) GetRetryCount ¶
func (*Message) GetStatus ¶
func (x *Message) GetStatus() MessageStatus
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageOptions ¶
type MessageOptions struct {
Priority int32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"` // 0-9, higher is more important
Ttl *durationpb.Duration `protobuf:"bytes,2,opt,name=ttl,proto3" json:"ttl,omitempty"`
MaxRetries int32 `protobuf:"varint,3,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
CorrelationId string `protobuf:"bytes,5,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"`
ReplyTo string `protobuf:"bytes,6,opt,name=reply_to,json=replyTo,proto3" json:"reply_to,omitempty"`
// contains filtered or unexported fields
}
func (*MessageOptions) Descriptor
deprecated
func (*MessageOptions) Descriptor() ([]byte, []int)
Deprecated: Use MessageOptions.ProtoReflect.Descriptor instead.
func (*MessageOptions) GetCorrelationId ¶
func (x *MessageOptions) GetCorrelationId() string
func (*MessageOptions) GetMaxRetries ¶
func (x *MessageOptions) GetMaxRetries() int32
func (*MessageOptions) GetMetadata ¶
func (x *MessageOptions) GetMetadata() map[string]string
func (*MessageOptions) GetPriority ¶
func (x *MessageOptions) GetPriority() int32
func (*MessageOptions) GetReplyTo ¶
func (x *MessageOptions) GetReplyTo() string
func (*MessageOptions) GetTtl ¶
func (x *MessageOptions) GetTtl() *durationpb.Duration
func (*MessageOptions) ProtoMessage ¶
func (*MessageOptions) ProtoMessage()
func (*MessageOptions) ProtoReflect ¶
func (x *MessageOptions) ProtoReflect() protoreflect.Message
func (*MessageOptions) Reset ¶
func (x *MessageOptions) Reset()
func (*MessageOptions) String ¶
func (x *MessageOptions) String() string
type MessageStatus ¶
type MessageStatus int32
const ( MessageStatus_MESSAGE_STATUS_UNSPECIFIED MessageStatus = 0 MessageStatus_MESSAGE_STATUS_PENDING MessageStatus = 1 MessageStatus_MESSAGE_STATUS_DELIVERED MessageStatus = 2 MessageStatus_MESSAGE_STATUS_ACKNOWLEDGED MessageStatus = 3 MessageStatus_MESSAGE_STATUS_FAILED MessageStatus = 4 MessageStatus_MESSAGE_STATUS_EXPIRED MessageStatus = 5 )
func (MessageStatus) Descriptor ¶
func (MessageStatus) Descriptor() protoreflect.EnumDescriptor
func (MessageStatus) Enum ¶
func (x MessageStatus) Enum() *MessageStatus
func (MessageStatus) EnumDescriptor
deprecated
func (MessageStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageStatus.Descriptor instead.
func (MessageStatus) Number ¶
func (x MessageStatus) Number() protoreflect.EnumNumber
func (MessageStatus) String ¶
func (x MessageStatus) String() string
func (MessageStatus) Type ¶
func (MessageStatus) Type() protoreflect.EnumType
type MetricValue ¶
type MetricValue struct {
// Types that are valid to be assigned to Value:
//
// *MetricValue_IntValue
// *MetricValue_DoubleValue
// *MetricValue_StringValue
Value isMetricValue_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*MetricValue) Descriptor
deprecated
func (*MetricValue) Descriptor() ([]byte, []int)
Deprecated: Use MetricValue.ProtoReflect.Descriptor instead.
func (*MetricValue) GetDoubleValue ¶
func (x *MetricValue) GetDoubleValue() float64
func (*MetricValue) GetIntValue ¶
func (x *MetricValue) GetIntValue() int64
func (*MetricValue) GetStringValue ¶
func (x *MetricValue) GetStringValue() string
func (*MetricValue) GetValue ¶
func (x *MetricValue) GetValue() isMetricValue_Value
func (*MetricValue) ProtoMessage ¶
func (*MetricValue) ProtoMessage()
func (*MetricValue) ProtoReflect ¶
func (x *MetricValue) ProtoReflect() protoreflect.Message
func (*MetricValue) Reset ¶
func (x *MetricValue) Reset()
func (*MetricValue) String ¶
func (x *MetricValue) String() string
type MetricValue_DoubleValue ¶
type MetricValue_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type MetricValue_IntValue ¶
type MetricValue_IntValue struct {
IntValue int64 `protobuf:"varint,1,opt,name=int_value,json=intValue,proto3,oneof"`
}
type MetricValue_StringValue ¶
type MetricValue_StringValue struct {
StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type MetricsResponse ¶
type MetricsResponse struct {
Metrics map[string]*MetricValue `` /* 141-byte string literal not displayed */
Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
func (*MetricsResponse) Descriptor
deprecated
func (*MetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetricsResponse.ProtoReflect.Descriptor instead.
func (*MetricsResponse) GetMetrics ¶
func (x *MetricsResponse) GetMetrics() map[string]*MetricValue
func (*MetricsResponse) GetTimestamp ¶
func (x *MetricsResponse) GetTimestamp() *timestamppb.Timestamp
func (*MetricsResponse) ProtoMessage ¶
func (*MetricsResponse) ProtoMessage()
func (*MetricsResponse) ProtoReflect ¶
func (x *MetricsResponse) ProtoReflect() protoreflect.Message
func (*MetricsResponse) Reset ¶
func (x *MetricsResponse) Reset()
func (*MetricsResponse) String ¶
func (x *MetricsResponse) String() string
type NackMessageRequest ¶
type NackMessageRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
Requeue bool `protobuf:"varint,3,opt,name=requeue,proto3" json:"requeue,omitempty"`
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*NackMessageRequest) Descriptor
deprecated
func (*NackMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use NackMessageRequest.ProtoReflect.Descriptor instead.
func (*NackMessageRequest) GetClientId ¶
func (x *NackMessageRequest) GetClientId() string
func (*NackMessageRequest) GetMessageId ¶
func (x *NackMessageRequest) GetMessageId() string
func (*NackMessageRequest) GetReason ¶
func (x *NackMessageRequest) GetReason() string
func (*NackMessageRequest) GetRequeue ¶
func (x *NackMessageRequest) GetRequeue() bool
func (*NackMessageRequest) ProtoMessage ¶
func (*NackMessageRequest) ProtoMessage()
func (*NackMessageRequest) ProtoReflect ¶
func (x *NackMessageRequest) ProtoReflect() protoreflect.Message
func (*NackMessageRequest) Reset ¶
func (x *NackMessageRequest) Reset()
func (*NackMessageRequest) String ¶
func (x *NackMessageRequest) String() string
type QueueConfig ¶
type QueueConfig struct {
MaxDepth int32 `protobuf:"varint,1,opt,name=max_depth,json=maxDepth,proto3" json:"max_depth,omitempty"`
MessageTtl *durationpb.Duration `protobuf:"bytes,2,opt,name=message_ttl,json=messageTtl,proto3" json:"message_ttl,omitempty"`
MaxRetries int32 `protobuf:"varint,3,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
EnableDeadLetter bool `protobuf:"varint,4,opt,name=enable_dead_letter,json=enableDeadLetter,proto3" json:"enable_dead_letter,omitempty"`
DeadLetterQueue string `protobuf:"bytes,5,opt,name=dead_letter_queue,json=deadLetterQueue,proto3" json:"dead_letter_queue,omitempty"`
// contains filtered or unexported fields
}
func (*QueueConfig) Descriptor
deprecated
func (*QueueConfig) Descriptor() ([]byte, []int)
Deprecated: Use QueueConfig.ProtoReflect.Descriptor instead.
func (*QueueConfig) GetDeadLetterQueue ¶
func (x *QueueConfig) GetDeadLetterQueue() string
func (*QueueConfig) GetEnableDeadLetter ¶
func (x *QueueConfig) GetEnableDeadLetter() bool
func (*QueueConfig) GetMaxDepth ¶
func (x *QueueConfig) GetMaxDepth() int32
func (*QueueConfig) GetMaxRetries ¶
func (x *QueueConfig) GetMaxRetries() int32
func (*QueueConfig) GetMessageTtl ¶
func (x *QueueConfig) GetMessageTtl() *durationpb.Duration
func (*QueueConfig) ProtoMessage ¶
func (*QueueConfig) ProtoMessage()
func (*QueueConfig) ProtoReflect ¶
func (x *QueueConfig) ProtoReflect() protoreflect.Message
func (*QueueConfig) Reset ¶
func (x *QueueConfig) Reset()
func (*QueueConfig) String ¶
func (x *QueueConfig) String() string
type QueueInfo ¶
type QueueInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type QueueType `protobuf:"varint,2,opt,name=type,proto3,enum=amq.v1.QueueType" json:"type,omitempty"`
MessageCount int64 `protobuf:"varint,3,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
SubscriberCount int32 `protobuf:"varint,4,opt,name=subscriber_count,json=subscriberCount,proto3" json:"subscriber_count,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// contains filtered or unexported fields
}
func (*QueueInfo) Descriptor
deprecated
func (*QueueInfo) GetCreatedAt ¶
func (x *QueueInfo) GetCreatedAt() *timestamppb.Timestamp
func (*QueueInfo) GetMessageCount ¶
func (*QueueInfo) GetSubscriberCount ¶
func (*QueueInfo) ProtoMessage ¶
func (*QueueInfo) ProtoMessage()
func (*QueueInfo) ProtoReflect ¶
func (x *QueueInfo) ProtoReflect() protoreflect.Message
type QueueType ¶
type QueueType int32
Common enums
func (QueueType) Descriptor ¶
func (QueueType) Descriptor() protoreflect.EnumDescriptor
func (QueueType) EnumDescriptor
deprecated
func (QueueType) Number ¶
func (x QueueType) Number() protoreflect.EnumNumber
func (QueueType) Type ¶
func (QueueType) Type() protoreflect.EnumType
type ReceiveMessagesRequest ¶
type ReceiveMessagesRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
MaxMessages int32 `protobuf:"varint,2,opt,name=max_messages,json=maxMessages,proto3" json:"max_messages,omitempty"`
WaitTime *durationpb.Duration `protobuf:"bytes,3,opt,name=wait_time,json=waitTime,proto3" json:"wait_time,omitempty"` // Long polling
AutoAck bool `protobuf:"varint,4,opt,name=auto_ack,json=autoAck,proto3" json:"auto_ack,omitempty"`
// contains filtered or unexported fields
}
func (*ReceiveMessagesRequest) Descriptor
deprecated
func (*ReceiveMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReceiveMessagesRequest.ProtoReflect.Descriptor instead.
func (*ReceiveMessagesRequest) GetAutoAck ¶
func (x *ReceiveMessagesRequest) GetAutoAck() bool
func (*ReceiveMessagesRequest) GetClientId ¶
func (x *ReceiveMessagesRequest) GetClientId() string
func (*ReceiveMessagesRequest) GetMaxMessages ¶
func (x *ReceiveMessagesRequest) GetMaxMessages() int32
func (*ReceiveMessagesRequest) GetWaitTime ¶
func (x *ReceiveMessagesRequest) GetWaitTime() *durationpb.Duration
func (*ReceiveMessagesRequest) ProtoMessage ¶
func (*ReceiveMessagesRequest) ProtoMessage()
func (*ReceiveMessagesRequest) ProtoReflect ¶
func (x *ReceiveMessagesRequest) ProtoReflect() protoreflect.Message
func (*ReceiveMessagesRequest) Reset ¶
func (x *ReceiveMessagesRequest) Reset()
func (*ReceiveMessagesRequest) String ¶
func (x *ReceiveMessagesRequest) String() string
type RegisterClientRequest ¶
type RegisterClientRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
Capabilities *ClientCapabilities `protobuf:"bytes,3,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
Client management messages
func (*RegisterClientRequest) Descriptor
deprecated
func (*RegisterClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientRequest.ProtoReflect.Descriptor instead.
func (*RegisterClientRequest) GetCapabilities ¶
func (x *RegisterClientRequest) GetCapabilities() *ClientCapabilities
func (*RegisterClientRequest) GetClientId ¶
func (x *RegisterClientRequest) GetClientId() string
func (*RegisterClientRequest) GetMetadata ¶
func (x *RegisterClientRequest) GetMetadata() map[string]string
func (*RegisterClientRequest) ProtoMessage ¶
func (*RegisterClientRequest) ProtoMessage()
func (*RegisterClientRequest) ProtoReflect ¶
func (x *RegisterClientRequest) ProtoReflect() protoreflect.Message
func (*RegisterClientRequest) Reset ¶
func (x *RegisterClientRequest) Reset()
func (*RegisterClientRequest) String ¶
func (x *RegisterClientRequest) String() string
type RegisterClientResponse ¶
type RegisterClientResponse struct {
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
RegisteredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=registered_at,json=registeredAt,proto3" json:"registered_at,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterClientResponse) Descriptor
deprecated
func (*RegisterClientResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterClientResponse.ProtoReflect.Descriptor instead.
func (*RegisterClientResponse) GetRegisteredAt ¶
func (x *RegisterClientResponse) GetRegisteredAt() *timestamppb.Timestamp
func (*RegisterClientResponse) GetSessionId ¶
func (x *RegisterClientResponse) GetSessionId() string
func (*RegisterClientResponse) ProtoMessage ¶
func (*RegisterClientResponse) ProtoMessage()
func (*RegisterClientResponse) ProtoReflect ¶
func (x *RegisterClientResponse) ProtoReflect() protoreflect.Message
func (*RegisterClientResponse) Reset ¶
func (x *RegisterClientResponse) Reset()
func (*RegisterClientResponse) String ¶
func (x *RegisterClientResponse) String() string
type SendDirectRequest ¶
type SendDirectRequest struct {
FromClientId string `protobuf:"bytes,1,opt,name=from_client_id,json=fromClientId,proto3" json:"from_client_id,omitempty"`
ToClientId string `protobuf:"bytes,2,opt,name=to_client_id,json=toClientId,proto3" json:"to_client_id,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
Options *MessageOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
func (*SendDirectRequest) Descriptor
deprecated
func (*SendDirectRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendDirectRequest.ProtoReflect.Descriptor instead.
func (*SendDirectRequest) GetFromClientId ¶
func (x *SendDirectRequest) GetFromClientId() string
func (*SendDirectRequest) GetOptions ¶
func (x *SendDirectRequest) GetOptions() *MessageOptions
func (*SendDirectRequest) GetPayload ¶
func (x *SendDirectRequest) GetPayload() []byte
func (*SendDirectRequest) GetToClientId ¶
func (x *SendDirectRequest) GetToClientId() string
func (*SendDirectRequest) ProtoMessage ¶
func (*SendDirectRequest) ProtoMessage()
func (*SendDirectRequest) ProtoReflect ¶
func (x *SendDirectRequest) ProtoReflect() protoreflect.Message
func (*SendDirectRequest) Reset ¶
func (x *SendDirectRequest) Reset()
func (*SendDirectRequest) String ¶
func (x *SendDirectRequest) String() string
type SendDirectResponse ¶
type SendDirectResponse struct {
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
SentAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"`
// contains filtered or unexported fields
}
func (*SendDirectResponse) Descriptor
deprecated
func (*SendDirectResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendDirectResponse.ProtoReflect.Descriptor instead.
func (*SendDirectResponse) GetMessageId ¶
func (x *SendDirectResponse) GetMessageId() string
func (*SendDirectResponse) GetSentAt ¶
func (x *SendDirectResponse) GetSentAt() *timestamppb.Timestamp
func (*SendDirectResponse) ProtoMessage ¶
func (*SendDirectResponse) ProtoMessage()
func (*SendDirectResponse) ProtoReflect ¶
func (x *SendDirectResponse) ProtoReflect() protoreflect.Message
func (*SendDirectResponse) Reset ¶
func (x *SendDirectResponse) Reset()
func (*SendDirectResponse) String ¶
func (x *SendDirectResponse) String() string
type SubmitTaskBatchRequest ¶
type SubmitTaskBatchRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Items []*TaskItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitTaskBatchRequest) Descriptor
deprecated
func (*SubmitTaskBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTaskBatchRequest.ProtoReflect.Descriptor instead.
func (*SubmitTaskBatchRequest) GetClientId ¶
func (x *SubmitTaskBatchRequest) GetClientId() string
func (*SubmitTaskBatchRequest) GetItems ¶
func (x *SubmitTaskBatchRequest) GetItems() []*TaskItem
func (*SubmitTaskBatchRequest) ProtoMessage ¶
func (*SubmitTaskBatchRequest) ProtoMessage()
func (*SubmitTaskBatchRequest) ProtoReflect ¶
func (x *SubmitTaskBatchRequest) ProtoReflect() protoreflect.Message
func (*SubmitTaskBatchRequest) Reset ¶
func (x *SubmitTaskBatchRequest) Reset()
func (*SubmitTaskBatchRequest) String ¶
func (x *SubmitTaskBatchRequest) String() string
type SubmitTaskBatchResponse ¶
type SubmitTaskBatchResponse struct {
Results []*TaskResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitTaskBatchResponse) Descriptor
deprecated
func (*SubmitTaskBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTaskBatchResponse.ProtoReflect.Descriptor instead.
func (*SubmitTaskBatchResponse) GetResults ¶
func (x *SubmitTaskBatchResponse) GetResults() []*TaskResult
func (*SubmitTaskBatchResponse) ProtoMessage ¶
func (*SubmitTaskBatchResponse) ProtoMessage()
func (*SubmitTaskBatchResponse) ProtoReflect ¶
func (x *SubmitTaskBatchResponse) ProtoReflect() protoreflect.Message
func (*SubmitTaskBatchResponse) Reset ¶
func (x *SubmitTaskBatchResponse) Reset()
func (*SubmitTaskBatchResponse) String ¶
func (x *SubmitTaskBatchResponse) String() string
type SubmitTaskRequest ¶
type SubmitTaskRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
Options *MessageOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
Message operations
func (*SubmitTaskRequest) Descriptor
deprecated
func (*SubmitTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTaskRequest.ProtoReflect.Descriptor instead.
func (*SubmitTaskRequest) GetClientId ¶
func (x *SubmitTaskRequest) GetClientId() string
func (*SubmitTaskRequest) GetOptions ¶
func (x *SubmitTaskRequest) GetOptions() *MessageOptions
func (*SubmitTaskRequest) GetPayload ¶
func (x *SubmitTaskRequest) GetPayload() []byte
func (*SubmitTaskRequest) GetTopic ¶
func (x *SubmitTaskRequest) GetTopic() string
func (*SubmitTaskRequest) ProtoMessage ¶
func (*SubmitTaskRequest) ProtoMessage()
func (*SubmitTaskRequest) ProtoReflect ¶
func (x *SubmitTaskRequest) ProtoReflect() protoreflect.Message
func (*SubmitTaskRequest) Reset ¶
func (x *SubmitTaskRequest) Reset()
func (*SubmitTaskRequest) String ¶
func (x *SubmitTaskRequest) String() string
type SubmitTaskResponse ¶
type SubmitTaskResponse struct {
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
SubmittedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=submitted_at,json=submittedAt,proto3" json:"submitted_at,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitTaskResponse) Descriptor
deprecated
func (*SubmitTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTaskResponse.ProtoReflect.Descriptor instead.
func (*SubmitTaskResponse) GetMessageId ¶
func (x *SubmitTaskResponse) GetMessageId() string
func (*SubmitTaskResponse) GetSubmittedAt ¶
func (x *SubmitTaskResponse) GetSubmittedAt() *timestamppb.Timestamp
func (*SubmitTaskResponse) ProtoMessage ¶
func (*SubmitTaskResponse) ProtoMessage()
func (*SubmitTaskResponse) ProtoReflect ¶
func (x *SubmitTaskResponse) ProtoReflect() protoreflect.Message
func (*SubmitTaskResponse) Reset ¶
func (x *SubmitTaskResponse) Reset()
func (*SubmitTaskResponse) String ¶
func (x *SubmitTaskResponse) String() string
type SubscribeRequest ¶
type SubscribeRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Topics []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
Options *SubscriptionOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
Subscription management
func (*SubscribeRequest) Descriptor
deprecated
func (*SubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
func (*SubscribeRequest) GetClientId ¶
func (x *SubscribeRequest) GetClientId() string
func (*SubscribeRequest) GetOptions ¶
func (x *SubscribeRequest) GetOptions() *SubscriptionOptions
func (*SubscribeRequest) GetTopics ¶
func (x *SubscribeRequest) GetTopics() []string
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) ProtoReflect ¶
func (x *SubscribeRequest) ProtoReflect() protoreflect.Message
func (*SubscribeRequest) Reset ¶
func (x *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (x *SubscribeRequest) String() string
type SubscriptionOptions ¶
type SubscriptionOptions struct {
Priority int32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"` // Higher priority clients get messages first
FilterExpression string `protobuf:"bytes,2,opt,name=filter_expression,json=filterExpression,proto3" json:"filter_expression,omitempty"` // Optional message filter
Exclusive bool `protobuf:"varint,3,opt,name=exclusive,proto3" json:"exclusive,omitempty"` // Only one client receives each message
// contains filtered or unexported fields
}
func (*SubscriptionOptions) Descriptor
deprecated
func (*SubscriptionOptions) Descriptor() ([]byte, []int)
Deprecated: Use SubscriptionOptions.ProtoReflect.Descriptor instead.
func (*SubscriptionOptions) GetExclusive ¶
func (x *SubscriptionOptions) GetExclusive() bool
func (*SubscriptionOptions) GetFilterExpression ¶
func (x *SubscriptionOptions) GetFilterExpression() string
func (*SubscriptionOptions) GetPriority ¶
func (x *SubscriptionOptions) GetPriority() int32
func (*SubscriptionOptions) ProtoMessage ¶
func (*SubscriptionOptions) ProtoMessage()
func (*SubscriptionOptions) ProtoReflect ¶
func (x *SubscriptionOptions) ProtoReflect() protoreflect.Message
func (*SubscriptionOptions) Reset ¶
func (x *SubscriptionOptions) Reset()
func (*SubscriptionOptions) String ¶
func (x *SubscriptionOptions) String() string
type TaskItem ¶
type TaskItem struct {
Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
Options *MessageOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
func (*TaskItem) Descriptor
deprecated
func (*TaskItem) GetOptions ¶
func (x *TaskItem) GetOptions() *MessageOptions
func (*TaskItem) GetPayload ¶
func (*TaskItem) ProtoMessage ¶
func (*TaskItem) ProtoMessage()
func (*TaskItem) ProtoReflect ¶
func (x *TaskItem) ProtoReflect() protoreflect.Message
type TaskResult ¶
type TaskResult struct {
MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*TaskResult) Descriptor
deprecated
func (*TaskResult) Descriptor() ([]byte, []int)
Deprecated: Use TaskResult.ProtoReflect.Descriptor instead.
func (*TaskResult) GetError ¶
func (x *TaskResult) GetError() string
func (*TaskResult) GetMessageId ¶
func (x *TaskResult) GetMessageId() string
func (*TaskResult) GetSuccess ¶
func (x *TaskResult) GetSuccess() bool
func (*TaskResult) ProtoMessage ¶
func (*TaskResult) ProtoMessage()
func (*TaskResult) ProtoReflect ¶
func (x *TaskResult) ProtoReflect() protoreflect.Message
func (*TaskResult) Reset ¶
func (x *TaskResult) Reset()
func (*TaskResult) String ¶
func (x *TaskResult) String() string
type UnimplementedAMQServer ¶
type UnimplementedAMQServer struct{}
UnimplementedAMQServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAMQServer) AckMessage ¶
func (UnimplementedAMQServer) AckMessage(context.Context, *AckMessageRequest) (*emptypb.Empty, error)
func (UnimplementedAMQServer) AckMessageBatch ¶
func (UnimplementedAMQServer) AckMessageBatch(context.Context, *AckMessageBatchRequest) (*emptypb.Empty, error)
func (UnimplementedAMQServer) CreateQueue ¶
func (UnimplementedAMQServer) CreateQueue(context.Context, *CreateQueueRequest) (*CreateQueueResponse, error)
func (UnimplementedAMQServer) DeleteQueue ¶
func (UnimplementedAMQServer) DeleteQueue(context.Context, *DeleteQueueRequest) (*emptypb.Empty, error)
func (UnimplementedAMQServer) GetClientInfo ¶
func (UnimplementedAMQServer) GetClientInfo(context.Context, *GetClientInfoRequest) (*ClientInfo, error)
func (UnimplementedAMQServer) GetMetrics ¶
func (UnimplementedAMQServer) GetMetrics(context.Context, *GetMetricsRequest) (*MetricsResponse, error)
func (UnimplementedAMQServer) GetQueueStats ¶
func (UnimplementedAMQServer) GetQueueStats(context.Context, *GetQueueStatsRequest) (*GetQueueStatsResponse, error)
func (UnimplementedAMQServer) Heartbeat ¶
func (UnimplementedAMQServer) Heartbeat(context.Context, *HeartbeatRequest) (*emptypb.Empty, error)
func (UnimplementedAMQServer) ListClients ¶
func (UnimplementedAMQServer) ListClients(context.Context, *ListClientsRequest) (*ListClientsResponse, error)
func (UnimplementedAMQServer) ListQueues ¶
func (UnimplementedAMQServer) ListQueues(context.Context, *ListQueuesRequest) (*ListQueuesResponse, error)
func (UnimplementedAMQServer) NackMessage ¶
func (UnimplementedAMQServer) NackMessage(context.Context, *NackMessageRequest) (*emptypb.Empty, error)
func (UnimplementedAMQServer) ReceiveMessages ¶
func (UnimplementedAMQServer) ReceiveMessages(*ReceiveMessagesRequest, grpc.ServerStreamingServer[Message]) error
func (UnimplementedAMQServer) RegisterClient ¶
func (UnimplementedAMQServer) RegisterClient(context.Context, *RegisterClientRequest) (*RegisterClientResponse, error)
func (UnimplementedAMQServer) SendDirect ¶
func (UnimplementedAMQServer) SendDirect(context.Context, *SendDirectRequest) (*SendDirectResponse, error)
func (UnimplementedAMQServer) SubmitTask ¶
func (UnimplementedAMQServer) SubmitTask(context.Context, *SubmitTaskRequest) (*SubmitTaskResponse, error)
func (UnimplementedAMQServer) SubmitTaskBatch ¶
func (UnimplementedAMQServer) SubmitTaskBatch(context.Context, *SubmitTaskBatchRequest) (*SubmitTaskBatchResponse, error)
func (UnimplementedAMQServer) Subscribe ¶
func (UnimplementedAMQServer) Subscribe(context.Context, *SubscribeRequest) (*emptypb.Empty, error)
func (UnimplementedAMQServer) UnregisterClient ¶
func (UnimplementedAMQServer) UnregisterClient(context.Context, *UnregisterClientRequest) (*emptypb.Empty, error)
func (UnimplementedAMQServer) Unsubscribe ¶
func (UnimplementedAMQServer) Unsubscribe(context.Context, *UnsubscribeRequest) (*emptypb.Empty, error)
type UnregisterClientRequest ¶
type UnregisterClientRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// contains filtered or unexported fields
}
func (*UnregisterClientRequest) Descriptor
deprecated
func (*UnregisterClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterClientRequest.ProtoReflect.Descriptor instead.
func (*UnregisterClientRequest) GetClientId ¶
func (x *UnregisterClientRequest) GetClientId() string
func (*UnregisterClientRequest) ProtoMessage ¶
func (*UnregisterClientRequest) ProtoMessage()
func (*UnregisterClientRequest) ProtoReflect ¶
func (x *UnregisterClientRequest) ProtoReflect() protoreflect.Message
func (*UnregisterClientRequest) Reset ¶
func (x *UnregisterClientRequest) Reset()
func (*UnregisterClientRequest) String ¶
func (x *UnregisterClientRequest) String() string
type UnsafeAMQServer ¶
type UnsafeAMQServer interface {
// contains filtered or unexported methods
}
UnsafeAMQServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AMQServer will result in compilation errors.
type UnsubscribeRequest ¶
type UnsubscribeRequest struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
Topics []string `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
// contains filtered or unexported fields
}
func (*UnsubscribeRequest) Descriptor
deprecated
func (*UnsubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnsubscribeRequest.ProtoReflect.Descriptor instead.
func (*UnsubscribeRequest) GetClientId ¶
func (x *UnsubscribeRequest) GetClientId() string
func (*UnsubscribeRequest) GetTopics ¶
func (x *UnsubscribeRequest) GetTopics() []string
func (*UnsubscribeRequest) ProtoMessage ¶
func (*UnsubscribeRequest) ProtoMessage()
func (*UnsubscribeRequest) ProtoReflect ¶
func (x *UnsubscribeRequest) ProtoReflect() protoreflect.Message
func (*UnsubscribeRequest) Reset ¶
func (x *UnsubscribeRequest) Reset()
func (*UnsubscribeRequest) String ¶
func (x *UnsubscribeRequest) String() string