webhook

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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