Documentation ¶
Index ¶
- Constants
- type Service
- func (service *Service) CreateWebhook(webhook *baasapi.Webhook) error
- func (service *Service) DeleteWebhook(ID baasapi.WebhookID) error
- func (service *Service) Webhook(ID baasapi.WebhookID) (*baasapi.Webhook, error)
- func (service *Service) WebhookByResourceID(ID string) (*baasapi.Webhook, error)
- func (service *Service) WebhookByToken(token string) (*baasapi.Webhook, error)
- func (service *Service) Webhooks() ([]baasapi.Webhook, error)
Constants ¶
View Source
const (
// BucketName represents the name of the bucket where this service stores data.
BucketName = "webhooks"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a service for managing webhook data.
func NewService ¶
NewService creates a new instance of a service.
func (*Service) CreateWebhook ¶
CreateWebhook assign an ID to a new webhook and saves it.
func (*Service) DeleteWebhook ¶
DeleteWebhook deletes a webhook.
func (*Service) WebhookByResourceID ¶
WebhookByResourceID returns a webhook by the ResourceID it is associated with.
func (*Service) WebhookByToken ¶
WebhookByToken returns a webhook by the random token it is associated with.
Click to show internal directories.
Click to hide internal directories.