Documentation
¶
Index ¶
- type PostgresDbClient
- func (pgdb *PostgresDbClient) Close() error
- func (pgdb *PostgresDbClient) CreateChannel(queueName string) error
- func (pgdb *PostgresDbClient) CreateDeadLetterQueue(queueName string) error
- func (pgdb *PostgresDbClient) Read(consumeCountLimit int, limit int64, lastId string, queueName string) ([]model.Message, error)
- func (pgdb *PostgresDbClient) Save(id string, payload []byte, queueName string) error
- func (pgdb *PostgresDbClient) SaveDeadLetterQueue(queueName string, msg model.Message, errMsg string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDbClient ¶
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) Save ¶
func (pgdb *PostgresDbClient) Save(id string, payload []byte, queueName string) error
func (*PostgresDbClient) SaveDeadLetterQueue ¶
Click to show internal directories.
Click to hide internal directories.