Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dataddo/pgq
/ types & classes
Types & classes
36 in github.com/dataddo/pgq
⨍
Functions
122
◇
Types & classes
36
Struct
Builder
Builder is a helper for building SQL queries with named parameters (jmoiron/sqlx and psql style for the moment)
internal/query/query_builder.go:10
Struct
Consumer
Consumer is the preconfigured subscriber of the write input messages
consumer.go:137
FuncType
ConsumerOption
ConsumerOption applies option to consumerConfig.
consumer.go:147
Struct
Handler
example_consumer_test.go:16
Struct
InvalidMessage
InvalidMessage is definition of invalid message used as argument for InvalidMessageCallback by Consumer.
consumer.go:130
FuncType
InvalidMessageCallback
InvalidMessageCallback defines what should happen to messages which are identified as invalid. Such messages usually have missing or malformed require
consumer.go:127
Interface
MessageHandler
MessageHandler handles message received from queue. Returning false means message wasn't processed correctly and shouldn't be acknowledged. Error cont
consumer.go:65
FuncType
MessageHandlerFunc
MessageHandlerFunc is MessageHandler implementation by simple function.
consumer.go:70
Struct
MessageIncoming
MessageIncoming is a record retrieved from table queue in Postgres
message.go:76
Struct
MessageOutgoing
MessageOutgoing is a record to be inserted into table queue in Postgres
message.go:65
TypeAlias
Metadata
Metadata is message Metadata definition.
message.go:18
Struct
MetadataFilter
MetadataFilter is a filter for metadata. Right now support only direct matching of key/value
consumer.go:240
TypeAlias
MetadataOperation
MetadataFilter is a filter for metadata. Right now support only direct matching of key/value
consumer.go:238
Struct
PayloadStruct
example_publisher_test.go:13
Interface
Publisher
Publisher publishes messages to Postgres queue.
publisher.go:24
FuncType
PublisherOption
PublisherOption configures the publisher. Multiple options can be passed to NewPublisher. Options are applied in the order they are given. The last op
publisher.go:36
Struct
StmtParams
StmtParams is a helper for generating prepared statement parameters, i.e. $1, $2, $3, ...
internal/pg/pg.go:10
Struct
args
consumer_test.go:14
Struct
args
errors_test.go:45
Struct
args
publisher_test.go:13
Struct
consumerConfig
consumerConfig contains consumer configuration.
consumer.go:78
Interface
execer
consumer.go:711
Struct
fatalError
consumer.go:33
Struct
fields
message_test.go:12
Interface
legacyPGError
legacyPGError is an interface used by previous versions of github.com/lib/pq. It is provided only to support legacy code. New code should use the pgEr
errors.go:21
Struct
legacyPGErrorImplementation
errors_test.go:9
Struct
metrics
consumer.go:289
Interface
pgError
errors.go:14
Struct
pgErrorImplementation
errors_test.go:27
Struct
pgMessage
consumer.go:515
Struct
publisher
publisher.go:18
Struct
publisherConfig
publisher.go:28
Struct
regularHandler
integtest/consumer_test.go:354
Struct
slowHandler
integtest/consumer_test.go:353
Struct
tbWriter
integtest/consumer_test.go:367
Struct
want
integtest/publisher_test.go:23