Versions in this module Expand all Collapse all v0 v0.0.3 Jun 20, 2023 Changes in this version + const Application + const BatchCreate + const Create + const Credential + const DID + const Delete + const Manifest + const Presentation + const Schema + const Submission + type CreateWebhookRequest struct + Noun Noun + URL string + Verb Verb + func (cwr CreateWebhookRequest) IsValid() bool + type CreateWebhookResponse struct + Webhook Webhook + type DeleteWebhookRequest struct + Noun Noun + URL string + Verb Verb + func (cwr DeleteWebhookRequest) IsValid() bool + type GetSupportedNounsResponse struct + Nouns []Noun + type GetSupportedVerbsResponse struct + Verbs []Verb + type GetWebhookRequest struct + Noun Noun + Verb Verb + type GetWebhookResponse struct + Webhook Webhook + type ListWebhooksResponse struct + Webhooks []Webhook + type Noun string + func (n Noun) IsValid() bool + type Payload struct + Data json.RawMessage + Noun Noun + URL string + Verb Verb + type Service struct + func NewWebhookService(config config.WebhookServiceConfig, s storage.ServiceStorage) (*Service, error) + func (s Service) Config() config.WebhookServiceConfig + func (s Service) CreateWebhook(ctx context.Context, request CreateWebhookRequest) (*CreateWebhookResponse, error) + func (s Service) DeleteWebhook(ctx context.Context, request DeleteWebhookRequest) error + func (s Service) GetSupportedNouns() GetSupportedNounsResponse + func (s Service) GetSupportedVerbs() GetSupportedVerbsResponse + func (s Service) GetWebhook(ctx context.Context, request GetWebhookRequest) (*GetWebhookResponse, error) + func (s Service) ListWebhooks(ctx context.Context) (*ListWebhooksResponse, error) + func (s Service) PublishWebhook(c *gin.Context, noun Noun, verb Verb, payloadReader io.Reader) + func (s Service) Status() framework.Status + func (s Service) Type() framework.Type + type Storage struct + func NewWebhookStorage(db storage.ServiceStorage) (*Storage, error) + func (whs *Storage) DeleteWebhook(ctx context.Context, noun, verb string) error + func (whs *Storage) GetWebhook(ctx context.Context, noun, verb string) (*Webhook, error) + func (whs *Storage) ListWebhooks(ctx context.Context) ([]Webhook, error) + func (whs *Storage) StoreWebhook(ctx context.Context, noun, verb string, webhook Webhook) error + type Verb string + type Webhook struct + Noun Noun + URLS []string + Verb Verb + func (wh Webhook) IsEmpty() bool v0.0.2-alpha Jun 1, 2023