Documentation
¶
Index ¶
- type CreateOption
- type CreateOptions
- type ListOption
- type ListOptions
- type UpdateOption
- type UpdateOptions
- type Webhooks
- func (srv *Webhooks) Create(WebhookId string, Url string, Name string, Events []string, ...) (*models.Webhook, error)
- func (srv *Webhooks) Delete(WebhookId string) (*interface{}, error)
- func (srv *Webhooks) Get(WebhookId string) (*models.Webhook, error)
- func (srv *Webhooks) List(optionalSetters ...ListOption) (*models.WebhookList, error)
- func (srv *Webhooks) Update(WebhookId string, Name string, Url string, Events []string, ...) (*models.Webhook, error)
- func (srv *Webhooks) UpdateSignature(WebhookId string) (*models.Webhook, error)
- func (srv *Webhooks) WithCreateEnabled(v bool) CreateOption
- func (srv *Webhooks) WithCreateHttpPass(v string) CreateOption
- func (srv *Webhooks) WithCreateHttpUser(v string) CreateOption
- func (srv *Webhooks) WithCreateSecurity(v bool) CreateOption
- func (srv *Webhooks) WithListQueries(v []string) ListOption
- func (srv *Webhooks) WithListTotal(v bool) ListOption
- func (srv *Webhooks) WithUpdateEnabled(v bool) UpdateOption
- func (srv *Webhooks) WithUpdateHttpPass(v string) UpdateOption
- func (srv *Webhooks) WithUpdateHttpUser(v string) UpdateOption
- func (srv *Webhooks) WithUpdateSecurity(v bool) UpdateOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOption ¶
type CreateOption func(*CreateOptions)
type CreateOptions ¶
type CreateOptions struct {
Enabled bool
Security bool
HttpUser string
HttpPass string
// contains filtered or unexported fields
}
func (CreateOptions) New ¶
func (options CreateOptions) New() *CreateOptions
type ListOption ¶
type ListOption func(*ListOptions)
type ListOptions ¶
func (ListOptions) New ¶
func (options ListOptions) New() *ListOptions
type UpdateOption ¶
type UpdateOption func(*UpdateOptions)
type UpdateOptions ¶
type UpdateOptions struct {
Enabled bool
Security bool
HttpUser string
HttpPass string
// contains filtered or unexported fields
}
func (UpdateOptions) New ¶
func (options UpdateOptions) New() *UpdateOptions
type Webhooks ¶
type Webhooks struct {
// contains filtered or unexported fields
}
Webhooks service
func (*Webhooks) Create ¶
func (srv *Webhooks) Create(WebhookId string, Url string, Name string, Events []string, optionalSetters ...CreateOption) (*models.Webhook, error)
Create create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
func (*Webhooks) Delete ¶
Delete delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
func (*Webhooks) Get ¶
Get get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
func (*Webhooks) List ¶
func (srv *Webhooks) List(optionalSetters ...ListOption) (*models.WebhookList, error)
List get a list of all webhooks belonging to the project. You can use the query params to filter your results.
func (*Webhooks) Update ¶
func (srv *Webhooks) Update(WebhookId string, Name string, Url string, Events []string, optionalSetters ...UpdateOption) (*models.Webhook, error)
Update update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
func (*Webhooks) UpdateSignature ¶
UpdateSignature update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
func (*Webhooks) WithCreateEnabled ¶
func (srv *Webhooks) WithCreateEnabled(v bool) CreateOption
func (*Webhooks) WithCreateHttpPass ¶
func (srv *Webhooks) WithCreateHttpPass(v string) CreateOption
func (*Webhooks) WithCreateHttpUser ¶
func (srv *Webhooks) WithCreateHttpUser(v string) CreateOption
func (*Webhooks) WithCreateSecurity ¶
func (srv *Webhooks) WithCreateSecurity(v bool) CreateOption
func (*Webhooks) WithListQueries ¶
func (srv *Webhooks) WithListQueries(v []string) ListOption
func (*Webhooks) WithListTotal ¶
func (srv *Webhooks) WithListTotal(v bool) ListOption
func (*Webhooks) WithUpdateEnabled ¶
func (srv *Webhooks) WithUpdateEnabled(v bool) UpdateOption
func (*Webhooks) WithUpdateHttpPass ¶
func (srv *Webhooks) WithUpdateHttpPass(v string) UpdateOption
func (*Webhooks) WithUpdateHttpUser ¶
func (srv *Webhooks) WithUpdateHttpUser(v string) UpdateOption
func (*Webhooks) WithUpdateSecurity ¶
func (srv *Webhooks) WithUpdateSecurity(v bool) UpdateOption