webhook

package
v1.10.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func (*Controller) Create

func (c *Controller) Create(wh *webhook.Webhook) (uuid.UUID, error)

func (*Controller) ListAll

func (c *Controller) ListAll(companyID uuid.UUID) (*[]webhook.ResponseWebhook, error)

func (*Controller) Remove

func (c *Controller) Remove(webhookID uuid.UUID) error

func (*Controller) Update

func (c *Controller) Update(wh *webhook.Webhook) error

type IController

type IController interface {
	ListAll(companyID uuid.UUID) (*[]webhook.ResponseWebhook, error)
	Create(wh *webhook.Webhook) (uuid.UUID, error)
	Update(wh *webhook.Webhook) error
	Remove(webhookID uuid.UUID) error
}

func NewController

func NewController(databaseWrite SQL.InterfaceWrite, databaseRead SQL.InterfaceRead) IController

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) Create

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

func (*Mock) ListAll

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

func (*Mock) Remove

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

func (*Mock) Update

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

Jump to

Keyboard shortcuts

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