Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDOQServer(s grpc.ServiceRegistrar, srv DOQServer)
- type AckRequest
- type AckResponse
- type CreateQueueRequest
- func (*CreateQueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateQueueRequest) GetName() string
- func (x *CreateQueueRequest) GetSettings() *QueueSettings
- func (x *CreateQueueRequest) GetType() string
- 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) GetSuccess() bool
- func (*CreateQueueResponse) ProtoMessage()
- func (x *CreateQueueResponse) ProtoReflect() protoreflect.Message
- func (x *CreateQueueResponse) Reset()
- func (x *CreateQueueResponse) String() string
- type DOQClient
- type DOQServer
- type DOQ_DequeueStreamClient
- type DOQ_DequeueStreamServer
- type DOQ_EnqueueStreamClient
- type DOQ_EnqueueStreamServer
- type DeleteQueueRequest
- func (*DeleteQueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteQueueRequest) GetName() string
- func (*DeleteQueueRequest) ProtoMessage()
- func (x *DeleteQueueRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteQueueRequest) Reset()
- func (x *DeleteQueueRequest) String() string
- type DeleteQueueResponse
- func (*DeleteQueueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteQueueResponse) GetSuccess() bool
- func (*DeleteQueueResponse) ProtoMessage()
- func (x *DeleteQueueResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteQueueResponse) Reset()
- func (x *DeleteQueueResponse) String() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetId() uint64
- func (x *DeleteRequest) GetQueueName() string
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- type DeleteResponse
- type DequeueRequest
- func (*DequeueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DequeueRequest) GetAck() bool
- func (x *DequeueRequest) GetQueueName() string
- func (*DequeueRequest) ProtoMessage()
- func (x *DequeueRequest) ProtoReflect() protoreflect.Message
- func (x *DequeueRequest) Reset()
- func (x *DequeueRequest) String() string
- type DequeueResponse
- func (*DequeueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DequeueResponse) GetContent() string
- func (x *DequeueResponse) GetGroup() string
- func (x *DequeueResponse) GetId() uint64
- func (x *DequeueResponse) GetMetadata() map[string]string
- func (x *DequeueResponse) GetPriority() int64
- func (x *DequeueResponse) GetQueueName() string
- func (x *DequeueResponse) GetSuccess() bool
- func (*DequeueResponse) ProtoMessage()
- func (x *DequeueResponse) ProtoReflect() protoreflect.Message
- func (x *DequeueResponse) Reset()
- func (x *DequeueResponse) String() string
- type EnqueueRequest
- func (*EnqueueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnqueueRequest) GetContent() string
- func (x *EnqueueRequest) GetGroup() string
- func (x *EnqueueRequest) GetId() uint64
- func (x *EnqueueRequest) GetMetadata() map[string]string
- func (x *EnqueueRequest) GetPriority() int64
- func (x *EnqueueRequest) GetQueueName() string
- func (*EnqueueRequest) ProtoMessage()
- func (x *EnqueueRequest) ProtoReflect() protoreflect.Message
- func (x *EnqueueRequest) Reset()
- func (x *EnqueueRequest) String() string
- type EnqueueResponse
- func (*EnqueueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnqueueResponse) GetContent() string
- func (x *EnqueueResponse) GetGroup() string
- func (x *EnqueueResponse) GetId() uint64
- func (x *EnqueueResponse) GetMetadata() map[string]string
- func (x *EnqueueResponse) GetPriority() int64
- func (x *EnqueueResponse) GetQueueName() string
- func (x *EnqueueResponse) GetSuccess() bool
- func (*EnqueueResponse) ProtoMessage()
- func (x *EnqueueResponse) ProtoReflect() protoreflect.Message
- func (x *EnqueueResponse) Reset()
- func (x *EnqueueResponse) String() string
- type GetQueueRequest
- type GetQueueResponse
- func (*GetQueueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetQueueResponse) GetName() string
- func (x *GetQueueResponse) GetReady() int64
- func (x *GetQueueResponse) GetSettings() *QueueSettings
- func (x *GetQueueResponse) GetStats() *Stats
- func (x *GetQueueResponse) GetTotal() int64
- func (x *GetQueueResponse) GetType() string
- func (x *GetQueueResponse) GetUnacked() int64
- func (*GetQueueResponse) ProtoMessage()
- func (x *GetQueueResponse) ProtoReflect() protoreflect.Message
- func (x *GetQueueResponse) Reset()
- func (x *GetQueueResponse) String() string
- type GetQueuesRequest
- type GetQueuesResponse
- func (*GetQueuesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetQueuesResponse) GetQueues() []*GetQueueResponse
- func (*GetQueuesResponse) ProtoMessage()
- func (x *GetQueuesResponse) ProtoReflect() protoreflect.Message
- func (x *GetQueuesResponse) Reset()
- func (x *GetQueuesResponse) String() string
- type GetRequest
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetContent() string
- func (x *GetResponse) GetGroup() string
- func (x *GetResponse) GetId() uint64
- func (x *GetResponse) GetMetadata() map[string]string
- func (x *GetResponse) GetPriority() int64
- func (x *GetResponse) GetQueueName() string
- func (x *GetResponse) GetSuccess() bool
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetContent() string
- func (x *Message) GetGroup() string
- func (x *Message) GetId() uint64
- func (x *Message) GetMetadata() map[string]string
- func (x *Message) GetPriority() int64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type NackRequest
- func (*NackRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NackRequest) GetId() uint64
- func (x *NackRequest) GetMetadata() map[string]string
- func (x *NackRequest) GetPriority() int64
- func (x *NackRequest) GetQueueName() string
- func (*NackRequest) ProtoMessage()
- func (x *NackRequest) ProtoReflect() protoreflect.Message
- func (x *NackRequest) Reset()
- func (x *NackRequest) String() string
- type NackResponse
- type Queue
- func (*Queue) Descriptor() ([]byte, []int)deprecated
- func (x *Queue) GetName() string
- func (x *Queue) GetSettings() *QueueSettings
- func (x *Queue) GetType() string
- func (*Queue) ProtoMessage()
- func (x *Queue) ProtoReflect() protoreflect.Message
- func (x *Queue) Reset()
- func (x *Queue) String() string
- type QueueSettings
- func (*QueueSettings) Descriptor() ([]byte, []int)deprecated
- func (x *QueueSettings) GetMaxUnacked() uint32
- func (x *QueueSettings) GetStrategy() QueueSettings_Strategy
- func (*QueueSettings) ProtoMessage()
- func (x *QueueSettings) ProtoReflect() protoreflect.Message
- func (x *QueueSettings) Reset()
- func (x *QueueSettings) String() string
- type QueueSettings_Strategy
- func (QueueSettings_Strategy) Descriptor() protoreflect.EnumDescriptor
- func (x QueueSettings_Strategy) Enum() *QueueSettings_Strategy
- func (QueueSettings_Strategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueueSettings_Strategy) Number() protoreflect.EnumNumber
- func (x QueueSettings_Strategy) String() string
- func (QueueSettings_Strategy) Type() protoreflect.EnumType
- type RaftCommand
- func (*RaftCommand) Descriptor() ([]byte, []int)deprecated
- func (x *RaftCommand) GetAck() *AckRequest
- func (x *RaftCommand) GetCmd() isRaftCommand_Cmd
- func (x *RaftCommand) GetCreateQueue() *CreateQueueRequest
- func (x *RaftCommand) GetDelete() *DeleteRequest
- func (x *RaftCommand) GetDeleteQueue() *DeleteQueueRequest
- func (x *RaftCommand) GetDequeue() *DequeueRequest
- func (x *RaftCommand) GetEnqueue() *EnqueueRequest
- func (x *RaftCommand) GetGet() *GetRequest
- func (x *RaftCommand) GetGetQueue() *GetQueueRequest
- func (x *RaftCommand) GetGetQueues() *GetQueuesRequest
- func (x *RaftCommand) GetNack() *NackRequest
- func (x *RaftCommand) GetUpdatePriority() *UpdatePriorityRequest
- func (*RaftCommand) ProtoMessage()
- func (x *RaftCommand) ProtoReflect() protoreflect.Message
- func (x *RaftCommand) Reset()
- func (x *RaftCommand) String() string
- type RaftCommand_Ack
- type RaftCommand_CreateQueue
- type RaftCommand_Delete
- type RaftCommand_DeleteQueue
- type RaftCommand_Dequeue
- type RaftCommand_Enqueue
- type RaftCommand_Get
- type RaftCommand_GetQueue
- type RaftCommand_GetQueues
- type RaftCommand_Nack
- type RaftCommand_UpdatePriority
- type SnapshotItem
- func (*SnapshotItem) Descriptor() ([]byte, []int)deprecated
- func (x *SnapshotItem) GetItem() isSnapshotItem_Item
- func (x *SnapshotItem) GetMessage() *Message
- func (x *SnapshotItem) GetQueue() *Queue
- func (*SnapshotItem) ProtoMessage()
- func (x *SnapshotItem) ProtoReflect() protoreflect.Message
- func (x *SnapshotItem) Reset()
- func (x *SnapshotItem) String() string
- type SnapshotItem_Message
- type SnapshotItem_Queue
- type Stats
- func (*Stats) Descriptor() ([]byte, []int)deprecated
- func (x *Stats) GetAckRPS() float64
- func (x *Stats) GetDequeueRPS() float64
- func (x *Stats) GetEnqueueRPS() float64
- func (x *Stats) GetNackRPS() float64
- func (*Stats) ProtoMessage()
- func (x *Stats) ProtoReflect() protoreflect.Message
- func (x *Stats) Reset()
- func (x *Stats) String() string
- type UnimplementedDOQServer
- func (UnimplementedDOQServer) Ack(context.Context, *AckRequest) (*AckResponse, error)
- func (UnimplementedDOQServer) CreateQueue(context.Context, *CreateQueueRequest) (*CreateQueueResponse, error)
- func (UnimplementedDOQServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedDOQServer) DeleteQueue(context.Context, *DeleteQueueRequest) (*DeleteQueueResponse, error)
- func (UnimplementedDOQServer) Dequeue(context.Context, *DequeueRequest) (*DequeueResponse, error)
- func (UnimplementedDOQServer) DequeueStream(grpc.BidiStreamingServer[DequeueRequest, DequeueResponse]) error
- func (UnimplementedDOQServer) Enqueue(context.Context, *EnqueueRequest) (*EnqueueResponse, error)
- func (UnimplementedDOQServer) EnqueueStream(grpc.BidiStreamingServer[EnqueueRequest, EnqueueResponse]) error
- func (UnimplementedDOQServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedDOQServer) GetQueue(context.Context, *GetQueueRequest) (*GetQueueResponse, error)
- func (UnimplementedDOQServer) GetQueues(context.Context, *GetQueuesRequest) (*GetQueuesResponse, error)
- func (UnimplementedDOQServer) Nack(context.Context, *NackRequest) (*NackResponse, error)
- func (UnimplementedDOQServer) UpdatePriority(context.Context, *UpdatePriorityRequest) (*UpdatePriorityResponse, error)
- type UnsafeDOQServer
- type UpdatePriorityRequest
- func (*UpdatePriorityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePriorityRequest) GetId() uint64
- func (x *UpdatePriorityRequest) GetPriority() int64
- func (x *UpdatePriorityRequest) GetQueueName() string
- func (*UpdatePriorityRequest) ProtoMessage()
- func (x *UpdatePriorityRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePriorityRequest) Reset()
- func (x *UpdatePriorityRequest) String() string
- type UpdatePriorityResponse
- func (*UpdatePriorityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePriorityResponse) GetSuccess() bool
- func (*UpdatePriorityResponse) ProtoMessage()
- func (x *UpdatePriorityResponse) ProtoReflect() protoreflect.Message
- func (x *UpdatePriorityResponse) Reset()
- func (x *UpdatePriorityResponse) String() string
Constants ¶
const ( DOQ_CreateQueue_FullMethodName = "/queue.DOQ/CreateQueue" DOQ_DeleteQueue_FullMethodName = "/queue.DOQ/DeleteQueue" DOQ_GetQueue_FullMethodName = "/queue.DOQ/GetQueue" DOQ_GetQueues_FullMethodName = "/queue.DOQ/GetQueues" DOQ_Enqueue_FullMethodName = "/queue.DOQ/Enqueue" DOQ_EnqueueStream_FullMethodName = "/queue.DOQ/EnqueueStream" DOQ_Dequeue_FullMethodName = "/queue.DOQ/Dequeue" DOQ_DequeueStream_FullMethodName = "/queue.DOQ/DequeueStream" DOQ_Get_FullMethodName = "/queue.DOQ/Get" DOQ_Delete_FullMethodName = "/queue.DOQ/Delete" DOQ_Ack_FullMethodName = "/queue.DOQ/Ack" DOQ_Nack_FullMethodName = "/queue.DOQ/Nack" DOQ_UpdatePriority_FullMethodName = "/queue.DOQ/UpdatePriority" )
Variables ¶
var ( QueueSettings_Strategy_name = map[int32]string{ 0: "STRATEGY_UNSPECIFIED", 1: "ROUND_ROBIN", 2: "WEIGHTED", } QueueSettings_Strategy_value = map[string]int32{ "STRATEGY_UNSPECIFIED": 0, "ROUND_ROBIN": 1, "WEIGHTED": 2, } )
Enum value maps for QueueSettings_Strategy.
var DOQ_ServiceDesc = grpc.ServiceDesc{ ServiceName: "queue.DOQ", HandlerType: (*DOQServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateQueue", Handler: _DOQ_CreateQueue_Handler, }, { MethodName: "DeleteQueue", Handler: _DOQ_DeleteQueue_Handler, }, { MethodName: "GetQueue", Handler: _DOQ_GetQueue_Handler, }, { MethodName: "GetQueues", Handler: _DOQ_GetQueues_Handler, }, { MethodName: "Enqueue", Handler: _DOQ_Enqueue_Handler, }, { MethodName: "Dequeue", Handler: _DOQ_Dequeue_Handler, }, { MethodName: "Get", Handler: _DOQ_Get_Handler, }, { MethodName: "Delete", Handler: _DOQ_Delete_Handler, }, { MethodName: "Ack", Handler: _DOQ_Ack_Handler, }, { MethodName: "Nack", Handler: _DOQ_Nack_Handler, }, { MethodName: "UpdatePriority", Handler: _DOQ_UpdatePriority_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "EnqueueStream", Handler: _DOQ_EnqueueStream_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "DequeueStream", Handler: _DOQ_DequeueStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "pkg/proto/doq.proto", }
DOQ_ServiceDesc is the grpc.ServiceDesc for DOQ service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_proto_doq_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDOQServer ¶
func RegisterDOQServer(s grpc.ServiceRegistrar, srv DOQServer)
Types ¶
type AckRequest ¶ added in v0.2.4
type AckRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*AckRequest) Descriptor
deprecated
added in
v0.2.4
func (*AckRequest) Descriptor() ([]byte, []int)
Deprecated: Use AckRequest.ProtoReflect.Descriptor instead.
func (*AckRequest) GetId ¶ added in v0.2.4
func (x *AckRequest) GetId() uint64
func (*AckRequest) GetQueueName ¶ added in v0.2.4
func (x *AckRequest) GetQueueName() string
func (*AckRequest) ProtoMessage ¶ added in v0.2.4
func (*AckRequest) ProtoMessage()
func (*AckRequest) ProtoReflect ¶ added in v0.2.4
func (x *AckRequest) ProtoReflect() protoreflect.Message
func (*AckRequest) Reset ¶ added in v0.2.4
func (x *AckRequest) Reset()
func (*AckRequest) String ¶ added in v0.2.4
func (x *AckRequest) String() string
type AckResponse ¶ added in v0.2.4
type AckResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*AckResponse) Descriptor
deprecated
added in
v0.2.4
func (*AckResponse) Descriptor() ([]byte, []int)
Deprecated: Use AckResponse.ProtoReflect.Descriptor instead.
func (*AckResponse) GetSuccess ¶ added in v0.2.4
func (x *AckResponse) GetSuccess() bool
func (*AckResponse) ProtoMessage ¶ added in v0.2.4
func (*AckResponse) ProtoMessage()
func (*AckResponse) ProtoReflect ¶ added in v0.2.4
func (x *AckResponse) ProtoReflect() protoreflect.Message
func (*AckResponse) Reset ¶ added in v0.2.4
func (x *AckResponse) Reset()
func (*AckResponse) String ¶ added in v0.2.4
func (x *AckResponse) String() string
type CreateQueueRequest ¶
type CreateQueueRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Settings *QueueSettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"`
// contains filtered or unexported fields
}
func (*CreateQueueRequest) Descriptor
deprecated
func (*CreateQueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateQueueRequest.ProtoReflect.Descriptor instead.
func (*CreateQueueRequest) GetName ¶
func (x *CreateQueueRequest) GetName() string
func (*CreateQueueRequest) GetSettings ¶ added in v0.6.0
func (x *CreateQueueRequest) GetSettings() *QueueSettings
func (*CreateQueueRequest) GetType ¶
func (x *CreateQueueRequest) GetType() string
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 {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*CreateQueueResponse) Descriptor
deprecated
func (*CreateQueueResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateQueueResponse.ProtoReflect.Descriptor instead.
func (*CreateQueueResponse) GetSuccess ¶
func (x *CreateQueueResponse) GetSuccess() bool
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 DOQClient ¶
type DOQClient interface {
CreateQueue(ctx context.Context, in *CreateQueueRequest, opts ...grpc.CallOption) (*CreateQueueResponse, error)
DeleteQueue(ctx context.Context, in *DeleteQueueRequest, opts ...grpc.CallOption) (*DeleteQueueResponse, error)
GetQueue(ctx context.Context, in *GetQueueRequest, opts ...grpc.CallOption) (*GetQueueResponse, error)
GetQueues(ctx context.Context, in *GetQueuesRequest, opts ...grpc.CallOption) (*GetQueuesResponse, error)
Enqueue(ctx context.Context, in *EnqueueRequest, opts ...grpc.CallOption) (*EnqueueResponse, error)
EnqueueStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[EnqueueRequest, EnqueueResponse], error)
Dequeue(ctx context.Context, in *DequeueRequest, opts ...grpc.CallOption) (*DequeueResponse, error)
DequeueStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[DequeueRequest, DequeueResponse], error)
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
Ack(ctx context.Context, in *AckRequest, opts ...grpc.CallOption) (*AckResponse, error)
Nack(ctx context.Context, in *NackRequest, opts ...grpc.CallOption) (*NackResponse, error)
UpdatePriority(ctx context.Context, in *UpdatePriorityRequest, opts ...grpc.CallOption) (*UpdatePriorityResponse, error)
}
DOQClient is the client API for DOQ 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.
func NewDOQClient ¶
func NewDOQClient(cc grpc.ClientConnInterface) DOQClient
type DOQServer ¶
type DOQServer interface {
CreateQueue(context.Context, *CreateQueueRequest) (*CreateQueueResponse, error)
DeleteQueue(context.Context, *DeleteQueueRequest) (*DeleteQueueResponse, error)
GetQueue(context.Context, *GetQueueRequest) (*GetQueueResponse, error)
GetQueues(context.Context, *GetQueuesRequest) (*GetQueuesResponse, error)
Enqueue(context.Context, *EnqueueRequest) (*EnqueueResponse, error)
EnqueueStream(grpc.BidiStreamingServer[EnqueueRequest, EnqueueResponse]) error
Dequeue(context.Context, *DequeueRequest) (*DequeueResponse, error)
DequeueStream(grpc.BidiStreamingServer[DequeueRequest, DequeueResponse]) error
Get(context.Context, *GetRequest) (*GetResponse, error)
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
Ack(context.Context, *AckRequest) (*AckResponse, error)
Nack(context.Context, *NackRequest) (*NackResponse, error)
UpdatePriority(context.Context, *UpdatePriorityRequest) (*UpdatePriorityResponse, error)
// contains filtered or unexported methods
}
DOQServer is the server API for DOQ service. All implementations must embed UnimplementedDOQServer for forward compatibility.
type DOQ_DequeueStreamClient ¶
type DOQ_DequeueStreamClient = grpc.BidiStreamingClient[DequeueRequest, DequeueResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type DOQ_DequeueStreamServer ¶
type DOQ_DequeueStreamServer = grpc.BidiStreamingServer[DequeueRequest, DequeueResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type DOQ_EnqueueStreamClient ¶
type DOQ_EnqueueStreamClient = grpc.BidiStreamingClient[EnqueueRequest, EnqueueResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type DOQ_EnqueueStreamServer ¶
type DOQ_EnqueueStreamServer = grpc.BidiStreamingServer[EnqueueRequest, EnqueueResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type DeleteQueueRequest ¶
type DeleteQueueRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteQueueRequest) Descriptor
deprecated
func (*DeleteQueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteQueueRequest.ProtoReflect.Descriptor instead.
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 DeleteQueueResponse ¶
type DeleteQueueResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteQueueResponse) Descriptor
deprecated
func (*DeleteQueueResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteQueueResponse.ProtoReflect.Descriptor instead.
func (*DeleteQueueResponse) GetSuccess ¶
func (x *DeleteQueueResponse) GetSuccess() bool
func (*DeleteQueueResponse) ProtoMessage ¶
func (*DeleteQueueResponse) ProtoMessage()
func (*DeleteQueueResponse) ProtoReflect ¶
func (x *DeleteQueueResponse) ProtoReflect() protoreflect.Message
func (*DeleteQueueResponse) Reset ¶
func (x *DeleteQueueResponse) Reset()
func (*DeleteQueueResponse) String ¶
func (x *DeleteQueueResponse) String() string
type DeleteRequest ¶ added in v0.3.0
type DeleteRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRequest) Descriptor
deprecated
added in
v0.3.0
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶ added in v0.3.0
func (x *DeleteRequest) GetId() uint64
func (*DeleteRequest) GetQueueName ¶ added in v0.3.0
func (x *DeleteRequest) GetQueueName() string
func (*DeleteRequest) ProtoMessage ¶ added in v0.3.0
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶ added in v0.3.0
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶ added in v0.3.0
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶ added in v0.3.0
func (x *DeleteRequest) String() string
type DeleteResponse ¶ added in v0.3.0
type DeleteResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
added in
v0.3.0
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetSuccess ¶ added in v0.3.0
func (x *DeleteResponse) GetSuccess() bool
func (*DeleteResponse) ProtoMessage ¶ added in v0.3.0
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶ added in v0.3.0
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶ added in v0.3.0
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶ added in v0.3.0
func (x *DeleteResponse) String() string
type DequeueRequest ¶
type DequeueRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
Ack bool `protobuf:"varint,2,opt,name=ack,proto3" json:"ack,omitempty"`
// contains filtered or unexported fields
}
func (*DequeueRequest) Descriptor
deprecated
func (*DequeueRequest) Descriptor() ([]byte, []int)
Deprecated: Use DequeueRequest.ProtoReflect.Descriptor instead.
func (*DequeueRequest) GetAck ¶
func (x *DequeueRequest) GetAck() bool
func (*DequeueRequest) GetQueueName ¶
func (x *DequeueRequest) GetQueueName() string
func (*DequeueRequest) ProtoMessage ¶
func (*DequeueRequest) ProtoMessage()
func (*DequeueRequest) ProtoReflect ¶
func (x *DequeueRequest) ProtoReflect() protoreflect.Message
func (*DequeueRequest) Reset ¶
func (x *DequeueRequest) Reset()
func (*DequeueRequest) String ¶
func (x *DequeueRequest) String() string
type DequeueResponse ¶
type DequeueResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
QueueName string `protobuf:"bytes,2,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
Priority int64 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DequeueResponse) Descriptor
deprecated
func (*DequeueResponse) Descriptor() ([]byte, []int)
Deprecated: Use DequeueResponse.ProtoReflect.Descriptor instead.
func (*DequeueResponse) GetContent ¶
func (x *DequeueResponse) GetContent() string
func (*DequeueResponse) GetGroup ¶
func (x *DequeueResponse) GetGroup() string
func (*DequeueResponse) GetId ¶
func (x *DequeueResponse) GetId() uint64
func (*DequeueResponse) GetMetadata ¶ added in v0.3.0
func (x *DequeueResponse) GetMetadata() map[string]string
func (*DequeueResponse) GetPriority ¶
func (x *DequeueResponse) GetPriority() int64
func (*DequeueResponse) GetQueueName ¶
func (x *DequeueResponse) GetQueueName() string
func (*DequeueResponse) GetSuccess ¶
func (x *DequeueResponse) GetSuccess() bool
func (*DequeueResponse) ProtoMessage ¶
func (*DequeueResponse) ProtoMessage()
func (*DequeueResponse) ProtoReflect ¶
func (x *DequeueResponse) ProtoReflect() protoreflect.Message
func (*DequeueResponse) Reset ¶
func (x *DequeueResponse) Reset()
func (*DequeueResponse) String ¶
func (x *DequeueResponse) String() string
type EnqueueRequest ¶
type EnqueueRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
Priority int64 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"`
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*EnqueueRequest) Descriptor
deprecated
func (*EnqueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnqueueRequest.ProtoReflect.Descriptor instead.
func (*EnqueueRequest) GetContent ¶
func (x *EnqueueRequest) GetContent() string
func (*EnqueueRequest) GetGroup ¶
func (x *EnqueueRequest) GetGroup() string
func (*EnqueueRequest) GetId ¶ added in v0.7.0
func (x *EnqueueRequest) GetId() uint64
func (*EnqueueRequest) GetMetadata ¶ added in v0.3.0
func (x *EnqueueRequest) GetMetadata() map[string]string
func (*EnqueueRequest) GetPriority ¶
func (x *EnqueueRequest) GetPriority() int64
func (*EnqueueRequest) GetQueueName ¶
func (x *EnqueueRequest) GetQueueName() string
func (*EnqueueRequest) ProtoMessage ¶
func (*EnqueueRequest) ProtoMessage()
func (*EnqueueRequest) ProtoReflect ¶
func (x *EnqueueRequest) ProtoReflect() protoreflect.Message
func (*EnqueueRequest) Reset ¶
func (x *EnqueueRequest) Reset()
func (*EnqueueRequest) String ¶
func (x *EnqueueRequest) String() string
type EnqueueResponse ¶
type EnqueueResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
QueueName string `protobuf:"bytes,2,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
Priority int64 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*EnqueueResponse) Descriptor
deprecated
func (*EnqueueResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnqueueResponse.ProtoReflect.Descriptor instead.
func (*EnqueueResponse) GetContent ¶
func (x *EnqueueResponse) GetContent() string
func (*EnqueueResponse) GetGroup ¶
func (x *EnqueueResponse) GetGroup() string
func (*EnqueueResponse) GetId ¶
func (x *EnqueueResponse) GetId() uint64
func (*EnqueueResponse) GetMetadata ¶ added in v0.3.0
func (x *EnqueueResponse) GetMetadata() map[string]string
func (*EnqueueResponse) GetPriority ¶
func (x *EnqueueResponse) GetPriority() int64
func (*EnqueueResponse) GetQueueName ¶
func (x *EnqueueResponse) GetQueueName() string
func (*EnqueueResponse) GetSuccess ¶
func (x *EnqueueResponse) GetSuccess() bool
func (*EnqueueResponse) ProtoMessage ¶
func (*EnqueueResponse) ProtoMessage()
func (*EnqueueResponse) ProtoReflect ¶
func (x *EnqueueResponse) ProtoReflect() protoreflect.Message
func (*EnqueueResponse) Reset ¶
func (x *EnqueueResponse) Reset()
func (*EnqueueResponse) String ¶
func (x *EnqueueResponse) String() string
type GetQueueRequest ¶ added in v0.7.2
type GetQueueRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*GetQueueRequest) Descriptor
deprecated
added in
v0.7.2
func (*GetQueueRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetQueueRequest.ProtoReflect.Descriptor instead.
func (*GetQueueRequest) GetName ¶ added in v0.7.2
func (x *GetQueueRequest) GetName() string
func (*GetQueueRequest) ProtoMessage ¶ added in v0.7.2
func (*GetQueueRequest) ProtoMessage()
func (*GetQueueRequest) ProtoReflect ¶ added in v0.7.2
func (x *GetQueueRequest) ProtoReflect() protoreflect.Message
func (*GetQueueRequest) Reset ¶ added in v0.7.2
func (x *GetQueueRequest) Reset()
func (*GetQueueRequest) String ¶ added in v0.7.2
func (x *GetQueueRequest) String() string
type GetQueueResponse ¶ added in v0.7.2
type GetQueueResponse struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Settings *QueueSettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"`
Stats *Stats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"`
Ready int64 `protobuf:"varint,5,opt,name=ready,proto3" json:"ready,omitempty"` // Number of messages ready to be dequeued
Unacked int64 `protobuf:"varint,6,opt,name=unacked,proto3" json:"unacked,omitempty"` // Number of messages that have been dequeued but not acknowledged
Total int64 `protobuf:"varint,7,opt,name=total,proto3" json:"total,omitempty"` // Total number of messages in the queue
// contains filtered or unexported fields
}
func (*GetQueueResponse) Descriptor
deprecated
added in
v0.7.2
func (*GetQueueResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetQueueResponse.ProtoReflect.Descriptor instead.
func (*GetQueueResponse) GetName ¶ added in v0.7.2
func (x *GetQueueResponse) GetName() string
func (*GetQueueResponse) GetReady ¶ added in v0.7.2
func (x *GetQueueResponse) GetReady() int64
func (*GetQueueResponse) GetSettings ¶ added in v0.7.2
func (x *GetQueueResponse) GetSettings() *QueueSettings
func (*GetQueueResponse) GetStats ¶ added in v0.7.2
func (x *GetQueueResponse) GetStats() *Stats
func (*GetQueueResponse) GetTotal ¶ added in v0.7.2
func (x *GetQueueResponse) GetTotal() int64
func (*GetQueueResponse) GetType ¶ added in v0.7.2
func (x *GetQueueResponse) GetType() string
func (*GetQueueResponse) GetUnacked ¶ added in v0.7.2
func (x *GetQueueResponse) GetUnacked() int64
func (*GetQueueResponse) ProtoMessage ¶ added in v0.7.2
func (*GetQueueResponse) ProtoMessage()
func (*GetQueueResponse) ProtoReflect ¶ added in v0.7.2
func (x *GetQueueResponse) ProtoReflect() protoreflect.Message
func (*GetQueueResponse) Reset ¶ added in v0.7.2
func (x *GetQueueResponse) Reset()
func (*GetQueueResponse) String ¶ added in v0.7.2
func (x *GetQueueResponse) String() string
type GetQueuesRequest ¶ added in v0.7.2
type GetQueuesRequest struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Optional filter by queue type
// contains filtered or unexported fields
}
func (*GetQueuesRequest) Descriptor
deprecated
added in
v0.7.2
func (*GetQueuesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetQueuesRequest.ProtoReflect.Descriptor instead.
func (*GetQueuesRequest) GetType ¶ added in v0.7.2
func (x *GetQueuesRequest) GetType() string
func (*GetQueuesRequest) ProtoMessage ¶ added in v0.7.2
func (*GetQueuesRequest) ProtoMessage()
func (*GetQueuesRequest) ProtoReflect ¶ added in v0.7.2
func (x *GetQueuesRequest) ProtoReflect() protoreflect.Message
func (*GetQueuesRequest) Reset ¶ added in v0.7.2
func (x *GetQueuesRequest) Reset()
func (*GetQueuesRequest) String ¶ added in v0.7.2
func (x *GetQueuesRequest) String() string
type GetQueuesResponse ¶ added in v0.7.2
type GetQueuesResponse struct {
Queues []*GetQueueResponse `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"`
// contains filtered or unexported fields
}
func (*GetQueuesResponse) Descriptor
deprecated
added in
v0.7.2
func (*GetQueuesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetQueuesResponse.ProtoReflect.Descriptor instead.
func (*GetQueuesResponse) GetQueues ¶ added in v0.7.2
func (x *GetQueuesResponse) GetQueues() []*GetQueueResponse
func (*GetQueuesResponse) ProtoMessage ¶ added in v0.7.2
func (*GetQueuesResponse) ProtoMessage()
func (*GetQueuesResponse) ProtoReflect ¶ added in v0.7.2
func (x *GetQueuesResponse) ProtoReflect() protoreflect.Message
func (*GetQueuesResponse) Reset ¶ added in v0.7.2
func (x *GetQueuesResponse) Reset()
func (*GetQueuesResponse) String ¶ added in v0.7.2
func (x *GetQueuesResponse) String() string
type GetRequest ¶ added in v0.3.0
type GetRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
added in
v0.3.0
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶ added in v0.3.0
func (x *GetRequest) GetId() uint64
func (*GetRequest) GetQueueName ¶ added in v0.3.0
func (x *GetRequest) GetQueueName() string
func (*GetRequest) ProtoMessage ¶ added in v0.3.0
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶ added in v0.3.0
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶ added in v0.3.0
func (x *GetRequest) Reset()
func (*GetRequest) String ¶ added in v0.3.0
func (x *GetRequest) String() string
type GetResponse ¶ added in v0.3.0
type GetResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
QueueName string `protobuf:"bytes,2,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"`
Priority int64 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetResponse) Descriptor
deprecated
added in
v0.3.0
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetContent ¶ added in v0.3.0
func (x *GetResponse) GetContent() string
func (*GetResponse) GetGroup ¶ added in v0.3.0
func (x *GetResponse) GetGroup() string
func (*GetResponse) GetId ¶ added in v0.3.0
func (x *GetResponse) GetId() uint64
func (*GetResponse) GetMetadata ¶ added in v0.3.0
func (x *GetResponse) GetMetadata() map[string]string
func (*GetResponse) GetPriority ¶ added in v0.3.0
func (x *GetResponse) GetPriority() int64
func (*GetResponse) GetQueueName ¶ added in v0.3.0
func (x *GetResponse) GetQueueName() string
func (*GetResponse) GetSuccess ¶ added in v0.3.0
func (x *GetResponse) GetSuccess() bool
func (*GetResponse) ProtoMessage ¶ added in v0.3.0
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶ added in v0.3.0
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶ added in v0.3.0
func (x *GetResponse) Reset()
func (*GetResponse) String ¶ added in v0.3.0
func (x *GetResponse) String() string
type Message ¶ added in v0.8.0
type Message struct {
Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Priority int64 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Message) Descriptor
deprecated
added in
v0.8.0
func (*Message) GetContent ¶ added in v0.8.0
func (*Message) GetMetadata ¶ added in v0.8.0
func (*Message) GetPriority ¶ added in v0.8.0
func (*Message) ProtoMessage ¶ added in v0.8.0
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.8.0
func (x *Message) ProtoReflect() protoreflect.Message
type NackRequest ¶ added in v0.2.4
type NackRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Priority int64 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*NackRequest) Descriptor
deprecated
added in
v0.2.4
func (*NackRequest) Descriptor() ([]byte, []int)
Deprecated: Use NackRequest.ProtoReflect.Descriptor instead.
func (*NackRequest) GetId ¶ added in v0.2.4
func (x *NackRequest) GetId() uint64
func (*NackRequest) GetMetadata ¶ added in v0.3.0
func (x *NackRequest) GetMetadata() map[string]string
func (*NackRequest) GetPriority ¶ added in v0.3.2
func (x *NackRequest) GetPriority() int64
func (*NackRequest) GetQueueName ¶ added in v0.2.4
func (x *NackRequest) GetQueueName() string
func (*NackRequest) ProtoMessage ¶ added in v0.2.4
func (*NackRequest) ProtoMessage()
func (*NackRequest) ProtoReflect ¶ added in v0.2.4
func (x *NackRequest) ProtoReflect() protoreflect.Message
func (*NackRequest) Reset ¶ added in v0.2.4
func (x *NackRequest) Reset()
func (*NackRequest) String ¶ added in v0.2.4
func (x *NackRequest) String() string
type NackResponse ¶ added in v0.2.4
type NackResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*NackResponse) Descriptor
deprecated
added in
v0.2.4
func (*NackResponse) Descriptor() ([]byte, []int)
Deprecated: Use NackResponse.ProtoReflect.Descriptor instead.
func (*NackResponse) GetSuccess ¶ added in v0.2.4
func (x *NackResponse) GetSuccess() bool
func (*NackResponse) ProtoMessage ¶ added in v0.2.4
func (*NackResponse) ProtoMessage()
func (*NackResponse) ProtoReflect ¶ added in v0.2.4
func (x *NackResponse) ProtoReflect() protoreflect.Message
func (*NackResponse) Reset ¶ added in v0.2.4
func (x *NackResponse) Reset()
func (*NackResponse) String ¶ added in v0.2.4
func (x *NackResponse) String() string
type Queue ¶ added in v0.8.0
type Queue struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Settings *QueueSettings `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"`
// contains filtered or unexported fields
}
func (*Queue) Descriptor
deprecated
added in
v0.8.0
func (*Queue) GetSettings ¶ added in v0.8.0
func (x *Queue) GetSettings() *QueueSettings
func (*Queue) ProtoMessage ¶ added in v0.8.0
func (*Queue) ProtoMessage()
func (*Queue) ProtoReflect ¶ added in v0.8.0
func (x *Queue) ProtoReflect() protoreflect.Message
type QueueSettings ¶ added in v0.6.0
type QueueSettings struct {
Strategy QueueSettings_Strategy `protobuf:"varint,1,opt,name=strategy,proto3,enum=queue.QueueSettings_Strategy" json:"strategy,omitempty"`
MaxUnacked uint32 `protobuf:"varint,2,opt,name=max_unacked,json=maxUnacked,proto3" json:"max_unacked,omitempty"`
// contains filtered or unexported fields
}
func (*QueueSettings) Descriptor
deprecated
added in
v0.6.0
func (*QueueSettings) Descriptor() ([]byte, []int)
Deprecated: Use QueueSettings.ProtoReflect.Descriptor instead.
func (*QueueSettings) GetMaxUnacked ¶ added in v0.6.0
func (x *QueueSettings) GetMaxUnacked() uint32
func (*QueueSettings) GetStrategy ¶ added in v0.6.0
func (x *QueueSettings) GetStrategy() QueueSettings_Strategy
func (*QueueSettings) ProtoMessage ¶ added in v0.6.0
func (*QueueSettings) ProtoMessage()
func (*QueueSettings) ProtoReflect ¶ added in v0.6.0
func (x *QueueSettings) ProtoReflect() protoreflect.Message
func (*QueueSettings) Reset ¶ added in v0.6.0
func (x *QueueSettings) Reset()
func (*QueueSettings) String ¶ added in v0.6.0
func (x *QueueSettings) String() string
type QueueSettings_Strategy ¶ added in v0.6.0
type QueueSettings_Strategy int32
const ( QueueSettings_STRATEGY_UNSPECIFIED QueueSettings_Strategy = 0 QueueSettings_ROUND_ROBIN QueueSettings_Strategy = 1 QueueSettings_WEIGHTED QueueSettings_Strategy = 2 )
func (QueueSettings_Strategy) Descriptor ¶ added in v0.6.0
func (QueueSettings_Strategy) Descriptor() protoreflect.EnumDescriptor
func (QueueSettings_Strategy) Enum ¶ added in v0.6.0
func (x QueueSettings_Strategy) Enum() *QueueSettings_Strategy
func (QueueSettings_Strategy) EnumDescriptor
deprecated
added in
v0.6.0
func (QueueSettings_Strategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use QueueSettings_Strategy.Descriptor instead.
func (QueueSettings_Strategy) Number ¶ added in v0.6.0
func (x QueueSettings_Strategy) Number() protoreflect.EnumNumber
func (QueueSettings_Strategy) String ¶ added in v0.6.0
func (x QueueSettings_Strategy) String() string
func (QueueSettings_Strategy) Type ¶ added in v0.6.0
func (QueueSettings_Strategy) Type() protoreflect.EnumType
type RaftCommand ¶ added in v0.9.0
type RaftCommand struct {
// Types that are valid to be assigned to Cmd:
//
// *RaftCommand_CreateQueue
// *RaftCommand_DeleteQueue
// *RaftCommand_GetQueue
// *RaftCommand_GetQueues
// *RaftCommand_Enqueue
// *RaftCommand_Dequeue
// *RaftCommand_Get
// *RaftCommand_Delete
// *RaftCommand_Ack
// *RaftCommand_Nack
// *RaftCommand_UpdatePriority
Cmd isRaftCommand_Cmd `protobuf_oneof:"cmd"`
// contains filtered or unexported fields
}
func (*RaftCommand) Descriptor
deprecated
added in
v0.9.0
func (*RaftCommand) Descriptor() ([]byte, []int)
Deprecated: Use RaftCommand.ProtoReflect.Descriptor instead.
func (*RaftCommand) GetAck ¶ added in v0.9.0
func (x *RaftCommand) GetAck() *AckRequest
func (*RaftCommand) GetCmd ¶ added in v0.9.0
func (x *RaftCommand) GetCmd() isRaftCommand_Cmd
func (*RaftCommand) GetCreateQueue ¶ added in v0.9.0
func (x *RaftCommand) GetCreateQueue() *CreateQueueRequest
func (*RaftCommand) GetDelete ¶ added in v0.9.0
func (x *RaftCommand) GetDelete() *DeleteRequest
func (*RaftCommand) GetDeleteQueue ¶ added in v0.9.0
func (x *RaftCommand) GetDeleteQueue() *DeleteQueueRequest
func (*RaftCommand) GetDequeue ¶ added in v0.9.0
func (x *RaftCommand) GetDequeue() *DequeueRequest
func (*RaftCommand) GetEnqueue ¶ added in v0.9.0
func (x *RaftCommand) GetEnqueue() *EnqueueRequest
func (*RaftCommand) GetGet ¶ added in v0.9.0
func (x *RaftCommand) GetGet() *GetRequest
func (*RaftCommand) GetGetQueue ¶ added in v0.9.0
func (x *RaftCommand) GetGetQueue() *GetQueueRequest
func (*RaftCommand) GetGetQueues ¶ added in v0.9.0
func (x *RaftCommand) GetGetQueues() *GetQueuesRequest
func (*RaftCommand) GetNack ¶ added in v0.9.0
func (x *RaftCommand) GetNack() *NackRequest
func (*RaftCommand) GetUpdatePriority ¶ added in v0.9.0
func (x *RaftCommand) GetUpdatePriority() *UpdatePriorityRequest
func (*RaftCommand) ProtoMessage ¶ added in v0.9.0
func (*RaftCommand) ProtoMessage()
func (*RaftCommand) ProtoReflect ¶ added in v0.9.0
func (x *RaftCommand) ProtoReflect() protoreflect.Message
func (*RaftCommand) Reset ¶ added in v0.9.0
func (x *RaftCommand) Reset()
func (*RaftCommand) String ¶ added in v0.9.0
func (x *RaftCommand) String() string
type RaftCommand_Ack ¶ added in v0.9.0
type RaftCommand_Ack struct {
Ack *AckRequest `protobuf:"bytes,9,opt,name=ack,proto3,oneof"`
}
type RaftCommand_CreateQueue ¶ added in v0.9.0
type RaftCommand_CreateQueue struct {
CreateQueue *CreateQueueRequest `protobuf:"bytes,1,opt,name=createQueue,proto3,oneof"`
}
type RaftCommand_Delete ¶ added in v0.9.0
type RaftCommand_Delete struct {
Delete *DeleteRequest `protobuf:"bytes,8,opt,name=delete,proto3,oneof"`
}
type RaftCommand_DeleteQueue ¶ added in v0.9.0
type RaftCommand_DeleteQueue struct {
DeleteQueue *DeleteQueueRequest `protobuf:"bytes,2,opt,name=deleteQueue,proto3,oneof"`
}
type RaftCommand_Dequeue ¶ added in v0.9.0
type RaftCommand_Dequeue struct {
Dequeue *DequeueRequest `protobuf:"bytes,6,opt,name=dequeue,proto3,oneof"`
}
type RaftCommand_Enqueue ¶ added in v0.9.0
type RaftCommand_Enqueue struct {
Enqueue *EnqueueRequest `protobuf:"bytes,5,opt,name=enqueue,proto3,oneof"`
}
type RaftCommand_Get ¶ added in v0.9.0
type RaftCommand_Get struct {
Get *GetRequest `protobuf:"bytes,7,opt,name=get,proto3,oneof"`
}
type RaftCommand_GetQueue ¶ added in v0.9.0
type RaftCommand_GetQueue struct {
GetQueue *GetQueueRequest `protobuf:"bytes,3,opt,name=getQueue,proto3,oneof"`
}
type RaftCommand_GetQueues ¶ added in v0.9.0
type RaftCommand_GetQueues struct {
GetQueues *GetQueuesRequest `protobuf:"bytes,4,opt,name=getQueues,proto3,oneof"`
}
type RaftCommand_Nack ¶ added in v0.9.0
type RaftCommand_Nack struct {
Nack *NackRequest `protobuf:"bytes,10,opt,name=nack,proto3,oneof"`
}
type RaftCommand_UpdatePriority ¶ added in v0.9.0
type RaftCommand_UpdatePriority struct {
UpdatePriority *UpdatePriorityRequest `protobuf:"bytes,11,opt,name=updatePriority,proto3,oneof"`
}
type SnapshotItem ¶ added in v0.8.0
type SnapshotItem struct {
// Types that are valid to be assigned to Item:
//
// *SnapshotItem_Queue
// *SnapshotItem_Message
Item isSnapshotItem_Item `protobuf_oneof:"item"`
// contains filtered or unexported fields
}
func (*SnapshotItem) Descriptor
deprecated
added in
v0.8.0
func (*SnapshotItem) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotItem.ProtoReflect.Descriptor instead.
func (*SnapshotItem) GetItem ¶ added in v0.8.0
func (x *SnapshotItem) GetItem() isSnapshotItem_Item
func (*SnapshotItem) GetMessage ¶ added in v0.8.0
func (x *SnapshotItem) GetMessage() *Message
func (*SnapshotItem) GetQueue ¶ added in v0.8.0
func (x *SnapshotItem) GetQueue() *Queue
func (*SnapshotItem) ProtoMessage ¶ added in v0.8.0
func (*SnapshotItem) ProtoMessage()
func (*SnapshotItem) ProtoReflect ¶ added in v0.8.0
func (x *SnapshotItem) ProtoReflect() protoreflect.Message
func (*SnapshotItem) Reset ¶ added in v0.8.0
func (x *SnapshotItem) Reset()
func (*SnapshotItem) String ¶ added in v0.8.0
func (x *SnapshotItem) String() string
type SnapshotItem_Message ¶ added in v0.8.0
type SnapshotItem_Message struct {
Message *Message `protobuf:"bytes,2,opt,name=message,proto3,oneof"`
}
type SnapshotItem_Queue ¶ added in v0.8.0
type SnapshotItem_Queue struct {
Queue *Queue `protobuf:"bytes,1,opt,name=queue,proto3,oneof"`
}
type Stats ¶ added in v0.7.2
type Stats struct {
EnqueueRPS float64 `protobuf:"fixed64,1,opt,name=enqueueRPS,proto3" json:"enqueueRPS,omitempty"`
DequeueRPS float64 `protobuf:"fixed64,2,opt,name=dequeueRPS,proto3" json:"dequeueRPS,omitempty"`
AckRPS float64 `protobuf:"fixed64,3,opt,name=ackRPS,proto3" json:"ackRPS,omitempty"`
NackRPS float64 `protobuf:"fixed64,4,opt,name=nackRPS,proto3" json:"nackRPS,omitempty"`
// contains filtered or unexported fields
}
func (*Stats) Descriptor
deprecated
added in
v0.7.2
func (*Stats) GetDequeueRPS ¶ added in v0.7.2
func (*Stats) GetEnqueueRPS ¶ added in v0.7.2
func (*Stats) GetNackRPS ¶ added in v0.7.2
func (*Stats) ProtoMessage ¶ added in v0.7.2
func (*Stats) ProtoMessage()
func (*Stats) ProtoReflect ¶ added in v0.7.2
func (x *Stats) ProtoReflect() protoreflect.Message
type UnimplementedDOQServer ¶
type UnimplementedDOQServer struct{}
UnimplementedDOQServer 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 (UnimplementedDOQServer) Ack ¶ added in v0.2.4
func (UnimplementedDOQServer) Ack(context.Context, *AckRequest) (*AckResponse, error)
func (UnimplementedDOQServer) CreateQueue ¶
func (UnimplementedDOQServer) CreateQueue(context.Context, *CreateQueueRequest) (*CreateQueueResponse, error)
func (UnimplementedDOQServer) Delete ¶ added in v0.3.0
func (UnimplementedDOQServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedDOQServer) DeleteQueue ¶
func (UnimplementedDOQServer) DeleteQueue(context.Context, *DeleteQueueRequest) (*DeleteQueueResponse, error)
func (UnimplementedDOQServer) Dequeue ¶
func (UnimplementedDOQServer) Dequeue(context.Context, *DequeueRequest) (*DequeueResponse, error)
func (UnimplementedDOQServer) DequeueStream ¶
func (UnimplementedDOQServer) DequeueStream(grpc.BidiStreamingServer[DequeueRequest, DequeueResponse]) error
func (UnimplementedDOQServer) Enqueue ¶
func (UnimplementedDOQServer) Enqueue(context.Context, *EnqueueRequest) (*EnqueueResponse, error)
func (UnimplementedDOQServer) EnqueueStream ¶
func (UnimplementedDOQServer) EnqueueStream(grpc.BidiStreamingServer[EnqueueRequest, EnqueueResponse]) error
func (UnimplementedDOQServer) Get ¶ added in v0.3.0
func (UnimplementedDOQServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedDOQServer) GetQueue ¶ added in v0.7.2
func (UnimplementedDOQServer) GetQueue(context.Context, *GetQueueRequest) (*GetQueueResponse, error)
func (UnimplementedDOQServer) GetQueues ¶ added in v0.7.2
func (UnimplementedDOQServer) GetQueues(context.Context, *GetQueuesRequest) (*GetQueuesResponse, error)
func (UnimplementedDOQServer) Nack ¶ added in v0.2.4
func (UnimplementedDOQServer) Nack(context.Context, *NackRequest) (*NackResponse, error)
func (UnimplementedDOQServer) UpdatePriority ¶
func (UnimplementedDOQServer) UpdatePriority(context.Context, *UpdatePriorityRequest) (*UpdatePriorityResponse, error)
type UnsafeDOQServer ¶
type UnsafeDOQServer interface {
// contains filtered or unexported methods
}
UnsafeDOQServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DOQServer will result in compilation errors.
type UpdatePriorityRequest ¶
type UpdatePriorityRequest struct {
QueueName string `protobuf:"bytes,1,opt,name=queueName,proto3" json:"queueName,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Priority int64 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
// contains filtered or unexported fields
}
func (*UpdatePriorityRequest) Descriptor
deprecated
func (*UpdatePriorityRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePriorityRequest.ProtoReflect.Descriptor instead.
func (*UpdatePriorityRequest) GetId ¶
func (x *UpdatePriorityRequest) GetId() uint64
func (*UpdatePriorityRequest) GetPriority ¶
func (x *UpdatePriorityRequest) GetPriority() int64
func (*UpdatePriorityRequest) GetQueueName ¶
func (x *UpdatePriorityRequest) GetQueueName() string
func (*UpdatePriorityRequest) ProtoMessage ¶
func (*UpdatePriorityRequest) ProtoMessage()
func (*UpdatePriorityRequest) ProtoReflect ¶
func (x *UpdatePriorityRequest) ProtoReflect() protoreflect.Message
func (*UpdatePriorityRequest) Reset ¶
func (x *UpdatePriorityRequest) Reset()
func (*UpdatePriorityRequest) String ¶
func (x *UpdatePriorityRequest) String() string
type UpdatePriorityResponse ¶
type UpdatePriorityResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*UpdatePriorityResponse) Descriptor
deprecated
func (*UpdatePriorityResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePriorityResponse.ProtoReflect.Descriptor instead.
func (*UpdatePriorityResponse) GetSuccess ¶
func (x *UpdatePriorityResponse) GetSuccess() bool
func (*UpdatePriorityResponse) ProtoMessage ¶
func (*UpdatePriorityResponse) ProtoMessage()
func (*UpdatePriorityResponse) ProtoReflect ¶
func (x *UpdatePriorityResponse) ProtoReflect() protoreflect.Message
func (*UpdatePriorityResponse) Reset ¶
func (x *UpdatePriorityResponse) Reset()
func (*UpdatePriorityResponse) String ¶
func (x *UpdatePriorityResponse) String() string