Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { CreateWebhook(ctx context.Context, webhook *models.Webhook) (*models.Webhook, error) GetWebhook(ctx context.Context, id uint) (*models.Webhook, error) ListWebhookOfResources(ctx context.Context, resources map[string][]uint, query *q.Query) ([]*models.Webhook, int64, error) ListWebhooks(ctx context.Context) ([]*models.Webhook, error) UpdateWebhook(ctx context.Context, id uint, w *models.Webhook) (*models.Webhook, error) DeleteWebhook(ctx context.Context, id uint) error CreateWebhookLog(ctx context.Context, wl *models.WebhookLog) (*models.WebhookLog, error) CreateWebhookLogs(ctx context.Context, wls []*models.WebhookLog) ([]*models.WebhookLog, error) ListWebhookLogs(ctx context.Context, query *q.Query, resources map[string][]uint) ([]*models.WebhookLogWithEventInfo, int64, error) ListWebhookLogsByMap(ctx context.Context, webhookEventMap map[uint][]uint) ([]*models.WebhookLog, error) ListWebhookLogsByStatus(ctx context.Context, wID uint, status string) ([]*models.WebhookLog, error) UpdateWebhookLog(ctx context.Context, wl *models.WebhookLog) (*models.WebhookLog, error) GetWebhookLog(ctx context.Context, id uint) (*models.WebhookLog, error) ResendWebhook(ctx context.Context, id uint) (*models.WebhookLog, error) GetWebhookLogByEventID(ctx context.Context, webhookID, eventID uint) (*models.WebhookLog, error) GetMaxEventIDOfLog(ctx context.Context) (uint, error) DeleteWebhookLogs(ctx context.Context, id ...uint) (int64, error) ListWebhookLogsForClean(ctx context.Context, query *q.Query) ([]*models.WebhookLogWithEventInfo, error) }
Click to show internal directories.
Click to hide internal directories.