webhook

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

type Mock struct {
	mock.Mock
}

func (*Mock) Create

func (m *Mock) Create(wh *webhook.Webhook) error

func (*Mock) GetAllByCompanyID

func (m *Mock) GetAllByCompanyID(companyID uuid.UUID) (*[]webhook.ResponseWebhook, error)

func (*Mock) GetByRepositoryID

func (m *Mock) GetByRepositoryID(_ uuid.UUID) (*webhook.Webhook, error)

func (*Mock) GetByWebhookID

func (m *Mock) GetByWebhookID(webhookID uuid.UUID) (*webhook.Webhook, error)

func (*Mock) Remove

func (m *Mock) Remove(webhookID uuid.UUID) error

func (*Mock) Update

func (m *Mock) Update(wh *webhook.Webhook) error

type Webhook

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

func (*Webhook) Create

func (w *Webhook) Create(wh *webhook.Webhook) error

func (*Webhook) GetAllByCompanyID

func (w *Webhook) GetAllByCompanyID(companyID uuid.UUID) (*[]webhook.ResponseWebhook, error)

func (*Webhook) GetByRepositoryID

func (w *Webhook) GetByRepositoryID(repositoryID uuid.UUID) (*webhook.Webhook, error)

func (*Webhook) GetByWebhookID

func (w *Webhook) GetByWebhookID(webhookID uuid.UUID) (*webhook.Webhook, error)

func (*Webhook) Remove

func (w *Webhook) Remove(webhookID uuid.UUID) error

func (*Webhook) Update

func (w *Webhook) Update(wh *webhook.Webhook) error

Jump to

Keyboard shortcuts

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