MCPcopy Create free account
hub / github.com/dataddo/pgq / InvalidMessage

Struct InvalidMessage

consumer.go:130–134  ·  view source on GitHub ↗

InvalidMessage is definition of invalid message used as argument for InvalidMessageCallback by Consumer.

Source from the content-addressed store, hash-verified

128 Logger: noopLogger,
129}
130
131// InvalidMessageCallback defines what should happen to messages which are identified as invalid.
132// Such messages usually have missing or malformed required fields.
133type InvalidMessageCallback func(ctx context.Context, msg InvalidMessage, err error)
134
135// InvalidMessage is definition of invalid message used as argument for InvalidMessageCallback by Consumer.
136type InvalidMessage struct {
137 ID string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected