Documentation
¶
Index ¶
- func Listen[T Notifiable](ctx context.Context, config *ConnectConfig, notifiables []T) error
- func UnlockThread(ctx context.Context, conn Conn, lockId int) error
- type CallbackAction
- type Conn
- type ConnectConfig
- type Event
- type Notifiable
- type PoolConfig
- type Thread
- func (t *Thread) InsertBackoffEvent(ctx context.Context, conn Conn, retrySeconds int, errorMsg string) error
- func (t *Thread) InsertFailedEvent(ctx context.Context, conn Conn, errorMsg string) error
- func (t *Thread) InsertQueuedEvent(ctx context.Context, conn Conn) error
- func (t *Thread) InsertRetriesExhaustedEvent(ctx context.Context, conn Conn, errorMsg string) error
- func (t *Thread) InsertSuccessfulEvent(ctx context.Context, conn Conn) error
- func (t *Thread) Unlock(ctx context.Context, conn Conn) error
- type WorkflowNameQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
func Listen[T Notifiable](ctx context.Context, config *ConnectConfig, notifiables []T) error
Types ¶
type CallbackAction ¶
type CallbackAction struct {
// contains filtered or unexported fields
}
func NewCallbackAction ¶
type ConnectConfig ¶
type ConnectConfig struct {
// we could in the future support more config parameters, see
// https://pkg.go.dev/github.com/jackc/pgx/v5/pgxpool#Config
Database *string
}
func (ConnectConfig) String ¶
func (c ConnectConfig) String() string
type Event ¶
type Notifiable ¶
type Notifiable interface {
GetName() string
Notify()
}
type PoolConfig ¶
type PoolConfig struct {
ConnectConfig
}
type Thread ¶
func GetProcessableThreads ¶
func (*Thread) InsertBackoffEvent ¶
func (*Thread) InsertFailedEvent ¶
func (*Thread) InsertQueuedEvent ¶
func (*Thread) InsertRetriesExhaustedEvent ¶
func (*Thread) InsertSuccessfulEvent ¶
Click to show internal directories.
Click to hide internal directories.