isaqueveras / isaqueveras/synk
Create a Publisher interface
- Dominant language
- Go
- Stars
- 2
- Forks
- 0
- Avg merge
- 5h 19m
- Merged PRs (30d)
- 2
Description
```go
// Publisher defines the interface for inserting jobs into the queue.
type Publisher interface {
// Insert adds a job into the queue to be processed.
// If no options are provided, it will use the default options.
Insert(name string, params JobArgs, options ...*InsertOptions) (*int64, error)
// InsertTx adds a job into the specified queue within the context of the provided
// transaction, allowing the operation to be part of an atomic database transaction.
InsertTx(tx *sql.Tx, name string, params JobArgs, options ...*InsertOptions) (*int64, error)
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.