Documentation ¶
Index ¶
- type IWebhook
- type Mock
- func (m *Mock) Create(wh *webhook.Webhook) error
- func (m *Mock) GetAllByCompanyID(companyID uuid.UUID) (*[]webhook.ResponseWebhook, error)
- func (m *Mock) GetByRepositoryID(_ uuid.UUID) (*webhook.Webhook, error)
- func (m *Mock) GetByWebhookID(webhookID uuid.UUID) (*webhook.Webhook, error)
- func (m *Mock) Remove(webhookID uuid.UUID) error
- func (m *Mock) Update(wh *webhook.Webhook) error
- type Webhook
- func (w *Webhook) Create(wh *webhook.Webhook) error
- func (w *Webhook) GetAllByCompanyID(companyID uuid.UUID) (*[]webhook.ResponseWebhook, error)
- func (w *Webhook) GetByRepositoryID(repositoryID uuid.UUID) (*webhook.Webhook, error)
- func (w *Webhook) GetByWebhookID(webhookID uuid.UUID) (*webhook.Webhook, error)
- func (w *Webhook) Remove(webhookID uuid.UUID) error
- func (w *Webhook) Update(wh *webhook.Webhook) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IWebhook ¶
type IWebhook interface { GetByRepositoryID(repositoryID uuid.UUID) (*webhook.Webhook, error) GetByWebhookID(webhookID uuid.UUID) (*webhook.Webhook, error) GetAllByCompanyID(companyID uuid.UUID) (*[]webhook.ResponseWebhook, error) Create(wh *webhook.Webhook) error Update(wh *webhook.Webhook) error Remove(webhookID uuid.UUID) error }
func NewWebhookRepository ¶
func NewWebhookRepository(databaseRead relational.InterfaceRead, databaseWrite relational.InterfaceWrite) IWebhook
type Mock ¶
func (*Mock) GetAllByCompanyID ¶
func (*Mock) GetByRepositoryID ¶
func (*Mock) GetByWebhookID ¶
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
func (*Webhook) GetAllByCompanyID ¶
func (*Webhook) GetByRepositoryID ¶
func (*Webhook) GetByWebhookID ¶
Click to show internal directories.
Click to hide internal directories.