Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FactoryIface ¶
type Storage ¶
type Storage interface {
Bind(txer txer.Txer) (Storage, error)
CreatePublished(ctx context.Context, envelope *entity.Envelope) error
UpdateStatusPublished(ctx context.Context, id uint, src enum.Status, status enum.Status) error
ClaimPublishedBatch(ctx context.Context, batchSize int) ([]*entity.Envelope, error)
CreateReceived(ctx context.Context, envelope *entity.Envelope) error
ClaimReceivedBatch(ctx context.Context, batchSize int) ([]*entity.Envelope, error)
UpdateStatusReceived(ctx context.Context, id uint, src enum.Status, status enum.Status) error
StorageX
}
type StorageX ¶
type StorageX interface {
GetPublishedByID(ctx context.Context, id uint) (*entity.Envelope, error)
QueryPublished(ctx context.Context, status enum.Status, topic string, page *entity.Pagination) ([]*entity.Envelope, *entity.Pagination, error)
QueryReceived(ctx context.Context, status enum.Status, topic string, group string, page *entity.Pagination) ([]*entity.Envelope, *entity.Pagination, error)
}
type TxerBase ¶
type TxerBase struct {
// contains filtered or unexported fields
}
func (*TxerBase) SetFlushHandler ¶
Click to show internal directories.
Click to hide internal directories.