postgres

package
v0.53.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageQueueImplOpt

type MessageQueueImplOpt func(*MessageQueueImplOpts)

func WithLogger

func WithLogger(l *zerolog.Logger) MessageQueueImplOpt

func WithQos

func WithQos(qos int) MessageQueueImplOpt

type MessageQueueImplOpts

type MessageQueueImplOpts struct {
	// contains filtered or unexported fields
}

type PostgresMessageQueue

type PostgresMessageQueue struct {
	// contains filtered or unexported fields
}

func (*PostgresMessageQueue) AddMessage

func (p *PostgresMessageQueue) AddMessage(ctx context.Context, queue msgqueue.Queue, task *msgqueue.Message) error

func (*PostgresMessageQueue) Clone

func (p *PostgresMessageQueue) Clone() (func() error, msgqueue.MessageQueue)

func (*PostgresMessageQueue) IsReady

func (p *PostgresMessageQueue) IsReady() bool

func (*PostgresMessageQueue) RegisterTenant

func (p *PostgresMessageQueue) RegisterTenant(ctx context.Context, tenantId string) error

func (*PostgresMessageQueue) SetQOS

func (p *PostgresMessageQueue) SetQOS(prefetchCount int)

func (*PostgresMessageQueue) Subscribe

func (p *PostgresMessageQueue) Subscribe(queue msgqueue.Queue, preAck msgqueue.AckHook, postAck msgqueue.AckHook) (func() error, error)

Jump to

Keyboard shortcuts

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