Documentation ¶
Index ¶
- type Postgres
- func (pg *Postgres) AddMessage(ctx context.Context, tx *sqlx.Tx, message types.Outbox) error
- func (pg *Postgres) GetMessagesFromPos(ctx context.Context, processName string, position int64, limit int) ([]types.Outbox, error)
- func (pg *Postgres) GetPositionWithLock(ctx context.Context, processName string) (int64, error)
- func (pg *Postgres) Init(option *types.Option)
- func (pg *Postgres) SetPosition(ctx context.Context, processName string, position int64) error
- func (pg *Postgres) UpsertCursor(ctx context.Context, cursor types.Cursor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) AddMessage ¶
AddMessage adds message to outbox
func (*Postgres) GetMessagesFromPos ¶
func (*Postgres) GetPositionWithLock ¶
func (*Postgres) SetPosition ¶
Click to show internal directories.
Click to hide internal directories.