pgx2q

package
v0.0.0-...-743a3b1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMaxQueue int64 = 15

Functions

func QueueBuilderNew

func QueueBuilderNew(conf Config) func(connStr string) (p2q.Queue, error)

func QueueBuilderNewDefault

func QueueBuilderNewDefault(tableName string) func(connStr string) (p2q.Queue, error)

Types

type Config

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

Config contains queue table name and max queue size.

func ConfigNew

func ConfigNew(tableName string) (Config, error)

ConfigNew creates config with DefaultMaxQueue.

func (Config) MaxQueue

func (c Config) MaxQueue() int64

func (Config) ValidName

func (c Config) ValidName() validTableName

func (Config) WithMaxQueue

func (c Config) WithMaxQueue(max int64) Config

Jump to

Keyboard shortcuts

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