Documentation
¶
Index ¶
- type Repo
- func (r *Repo) AdminRedeliver(ctx context.Context, deliveryID string) (app.AdminDeliveryView, error)
- func (r *Repo) ClaimPending(ctx context.Context, batchSize int) ([]app.PendingDelivery, error)
- func (r *Repo) CreateSubscription(ctx context.Context, sub app.Subscription, secret string) (app.Subscription, error)
- func (r *Repo) DeleteSubscription(ctx context.Context, workspaceID, id string) error
- func (r *Repo) EmitForEvent(ctx context.Context, workspaceID string, event app.OutboundEvent) (int, error)
- func (r *Repo) EnqueuePing(ctx context.Context, workspaceID, subscriptionID string) error
- func (r *Repo) FirstFailureAt(ctx context.Context, subscriptionID string) (*time.Time, error)
- func (r *Repo) GetSubscription(ctx context.Context, workspaceID, id string) (app.Subscription, bool, error)
- func (r *Repo) ListAllDeliveries(ctx context.Context, f app.DeliveryFilter, limit, offset int) ([]app.AdminDeliveryView, int, error)
- func (r *Repo) ListDeliveries(ctx context.Context, workspaceID string, limit int) ([]app.Delivery, error)
- func (r *Repo) ListSubscriptions(ctx context.Context, workspaceID string) ([]app.Subscription, error)
- func (r *Repo) MarkDelivered(ctx context.Context, deliveryID string, statusCode int, now time.Time) error
- func (r *Repo) MarkRetry(ctx context.Context, deliveryID string, statusCode int, errMsg string, ...) error
- func (r *Repo) Redeliver(ctx context.Context, workspaceID, deliveryID string) (app.Delivery, error)
- func (r *Repo) RotateSecret(ctx context.Context, workspaceID, subscriptionID, newSealed string, ...) error
- func (r *Repo) SetSubscriptionActive(ctx context.Context, workspaceID, id string, active bool, now time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) AdminRedeliver ¶
func (*Repo) ClaimPending ¶
func (*Repo) CreateSubscription ¶
func (r *Repo) CreateSubscription(ctx context.Context, sub app.Subscription, secret string) (app.Subscription, error)
func (*Repo) DeleteSubscription ¶
func (*Repo) EmitForEvent ¶
func (*Repo) EnqueuePing ¶
func (*Repo) FirstFailureAt ¶
func (*Repo) GetSubscription ¶
func (*Repo) ListAllDeliveries ¶
func (r *Repo) ListAllDeliveries(ctx context.Context, f app.DeliveryFilter, limit, offset int) ([]app.AdminDeliveryView, int, error)
func (*Repo) ListDeliveries ¶
func (*Repo) ListSubscriptions ¶
func (*Repo) MarkDelivered ¶
func (*Repo) RotateSecret ¶
Click to show internal directories.
Click to hide internal directories.