postgres

package
v3.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func (*Postgres) Disconnect

func (this *Postgres) Disconnect() error

func (Postgres) Healthy

func (this Postgres) Healthy(ctx context.Context) error

func (*Postgres) Init

func (this *Postgres) Init(queues []string) error

func (Postgres) MaxConcurrentDrainWorkers added in v3.0.9

func (this Postgres) MaxConcurrentDrainWorkers() int

func (*Postgres) PassConnection

func (this *Postgres) PassConnection(connection *sql.DB)

func (*Postgres) Pop

func (this *Postgres) Pop(ctx context.Context, queueName string, handler types.Handler) error

func (Postgres) Publish

func (this Postgres) Publish(ctx context.Context, queueName string, payload *types.Task) error

func (Postgres) Purge

func (this Postgres) Purge(ctx context.Context, queueName string) error

func (Postgres) PurgeMatching

func (this Postgres) PurgeMatching(ctx context.Context, queueName, substr string) error

func (Postgres) Subscribe

func (this Postgres) Subscribe(ctx context.Context, queueName string, handler types.Handler) error

func (Postgres) Suck added in v3.0.9

func (this Postgres) Suck(ctx context.Context, queueName string, handler types.Handler) error

type Querier

type Querier interface {
	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
	QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
}

Jump to

Keyboard shortcuts

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