isaqueveras / isaqueveras/synk

Create a Publisher interface

Open
#29 0 comments 0 reactions 1 assignee Claimed by @isaqueveras View on GitHub
documentation
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.