webhooks

package
v0.0.0-...-1550d0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct {
	// contains filtered or unexported fields
}

func New

func New(webhooksRepo webhooks.Repository) *Impl

func (*Impl) DeleteAlmanaxWebhooks

func (service *Impl) DeleteAlmanaxWebhooks(webhooks []entities.WebhookAlmanax) error

func (*Impl) DeleteFeedWebhooks

func (service *Impl) DeleteFeedWebhooks(webhooks []entities.WebhookFeed) error

func (*Impl) DeleteTwitterWebhooks

func (service *Impl) DeleteTwitterWebhooks(webhooks []entities.WebhookTwitter) error

func (*Impl) GetAlmanaxWebhooks

func (service *Impl) GetAlmanaxWebhooks(locale amqp.Language) ([]entities.WebhookAlmanax, error)

func (*Impl) GetFeedWebhooks

func (service *Impl) GetFeedWebhooks(feedTypeID string, locale amqp.Language) ([]entities.WebhookFeed, error)

func (*Impl) GetTwitterWebhooks

func (service *Impl) GetTwitterWebhooks(locale amqp.Language) ([]entities.WebhookTwitter, error)

func (*Impl) UpdateAlmanaxWebhooks

func (service *Impl) UpdateAlmanaxWebhooks(webhooks []entities.WebhookAlmanax) error

func (*Impl) UpdateFeedWebhooks

func (service *Impl) UpdateFeedWebhooks(webhooks []entities.WebhookFeed) error

func (*Impl) UpdateTwitterWebhooks

func (service *Impl) UpdateTwitterWebhooks(webhooks []entities.WebhookTwitter) error

type Service

type Service interface {
	GetAlmanaxWebhooks(locale amqp.Language) ([]entities.WebhookAlmanax, error)
	GetFeedWebhooks(feedTypeID string, locale amqp.Language) ([]entities.WebhookFeed, error)
	GetTwitterWebhooks(locale amqp.Language) ([]entities.WebhookTwitter, error)
	UpdateAlmanaxWebhooks(webhooks []entities.WebhookAlmanax) error
	UpdateFeedWebhooks(webhooks []entities.WebhookFeed) error
	UpdateTwitterWebhooks(webhooks []entities.WebhookTwitter) error
	DeleteAlmanaxWebhooks(webhooks []entities.WebhookAlmanax) error
	DeleteFeedWebhooks(webhooks []entities.WebhookFeed) error
	DeleteTwitterWebhooks(webhooks []entities.WebhookTwitter) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL