storage

package
v0.0.0-...-1b30ddd Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresDbClient

type PostgresDbClient struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func NewPostgresClient

func NewPostgresClient(connectionUrl string, poolLimit int16, timeout int16) (*PostgresDbClient, error)

func (*PostgresDbClient) Close

func (pgdb *PostgresDbClient) Close() error

func (*PostgresDbClient) CreateChannel

func (pgdb *PostgresDbClient) CreateChannel(queueName string) error

func (*PostgresDbClient) CreateDeadLetterQueue

func (pgdb *PostgresDbClient) CreateDeadLetterQueue(queueName string) error

func (*PostgresDbClient) Read

func (pgdb *PostgresDbClient) Read(consumeCountLimit int, limit int64, lastId string, queueName string) ([]model.Message, error)

func (*PostgresDbClient) Save

func (pgdb *PostgresDbClient) Save(id string, payload []byte, queueName string) error

func (*PostgresDbClient) SaveDeadLetterQueue

func (pgdb *PostgresDbClient) SaveDeadLetterQueue(queueName string, msg model.Message, errMsg string) error

Jump to

Keyboard shortcuts

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