Documentation ¶
Index ¶
- type DBTX
- type GetJobLockRow
- type InsertJobLockParams
- type JobLock
- type NotifyParams
- type PingJobLockParams
- type Queries
- func (q *Queries) AcquireTXLock(ctx context.Context, id int64) error
- func (q *Queries) GetJobLock(ctx context.Context, name string) (GetJobLockRow, error)
- func (q *Queries) InsertJobLock(ctx context.Context, arg InsertJobLockParams) (int64, error)
- func (q *Queries) Notify(ctx context.Context, arg NotifyParams) error
- func (q *Queries) PingJobLock(ctx context.Context, arg PingJobLockParams) (int64, error)
- func (q *Queries) ReleaseJobLock(ctx context.Context, arg ReleaseJobLockParams) (int64, error)
- func (q *Queries) StealJobLock(ctx context.Context, arg StealJobLockParams) (int64, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type ReleaseJobLockParams
- type StealJobLockParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetJobLockRow ¶
type GetJobLockRow struct { Holder string Touched pgtype.Timestamptz Iteration int64 }
type InsertJobLockParams ¶
type JobLock ¶
type JobLock struct { Name string Holder string Touched pgtype.Timestamptz Iteration int64 }
type NotifyParams ¶
type PingJobLockParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AcquireTXLock ¶
func (*Queries) GetJobLock ¶
func (*Queries) InsertJobLock ¶
func (*Queries) PingJobLock ¶
func (*Queries) ReleaseJobLock ¶
func (*Queries) StealJobLock ¶
type ReleaseJobLockParams ¶
Click to show internal directories.
Click to hide internal directories.