Documentation ¶
Index ¶
- Variables
- type BlockQueue
- func (q *BlockQueue[V]) Ack(ctx context.Context, topic core.Topic, subscriberName, messageId string) error
- func (q *BlockQueue[V]) AddJob(ctx context.Context, topic core.Topic, subscribers core.Subscribers) error
- func (q *BlockQueue[V]) AddSubscriber(ctx context.Context, topic core.Topic, subscribers core.Subscribers) error
- func (q *BlockQueue[V]) Close()
- func (q *BlockQueue[V]) DeleteJob(topic core.Topic) error
- func (q *BlockQueue[V]) DeleteSubscriber(ctx context.Context, topic core.Topic, subcriber string) error
- func (q *BlockQueue[V]) GetSubscribersStatus(ctx context.Context, topic core.Topic) (bqio.SubscriberMessages, error)
- func (q *BlockQueue[V]) GetTopics(ctx context.Context, filter core.FilterTopic) (core.Topics, error)
- func (q *BlockQueue[V]) Publish(ctx context.Context, topic core.Topic, request bqio.Publish) error
- func (q *BlockQueue[V]) Read(ctx context.Context, topic core.Topic, subscriber string) (bqio.ResponseMessages, error)
- func (q *BlockQueue[V]) Run(ctx context.Context) error
- type Driver
- type Http
- type Job
- type Listener
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrListenerShutdown = errors.New("listener shutdown") ErrListenerNotFound = errors.New("listener not found") ErrListenerDeleted = errors.New("listener was deleted") ErrListenerRetryMessageNotFound = errors.New("error ack message. message_id not found") )
View Source
var (
ErrJobNotFound = errors.New("job not found")
)
Functions ¶
This section is empty.
Types ¶
type BlockQueue ¶
type BlockQueue[V chan bqio.ResponseMessages] struct { // contains filtered or unexported fields }
func New ¶
func New[V chan bqio.ResponseMessages](db Driver, kv *etcd.Etcd) *BlockQueue[V]
func (*BlockQueue[V]) AddJob ¶
func (q *BlockQueue[V]) AddJob(ctx context.Context, topic core.Topic, subscribers core.Subscribers) error
func (*BlockQueue[V]) AddSubscriber ¶
func (q *BlockQueue[V]) AddSubscriber(ctx context.Context, topic core.Topic, subscribers core.Subscribers) error
func (*BlockQueue[V]) Close ¶
func (q *BlockQueue[V]) Close()
func (*BlockQueue[V]) DeleteSubscriber ¶
func (*BlockQueue[V]) GetSubscribersStatus ¶
func (q *BlockQueue[V]) GetSubscribersStatus(ctx context.Context, topic core.Topic) (bqio.SubscriberMessages, error)
func (*BlockQueue[V]) GetTopics ¶
func (q *BlockQueue[V]) GetTopics(ctx context.Context, filter core.FilterTopic) (core.Topics, error)
type Http ¶
type Http struct {
Stream *BlockQueue[chan io.ResponseMessages]
}
type Job ¶
type Job[V chan io.ResponseMessages] struct { Id uuid.UUID Name string // contains filtered or unexported fields }
type Listener ¶
type Listener[V chan blockio.ResponseMessages] struct { Id string JobId string PriorityQueue *pqueue.PriorityQueue[V] // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.