Documentation
¶
Index ¶
- type CreateOption
- type CreateOptions
- type ListOption
- type ListOptions
- type UpdateOption
- type UpdateOptions
- type UpdateSecretOption
- type UpdateSecretOptions
- 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) UpdateSecret(WebhookId string, optionalSetters ...UpdateSecretOption) (*models.Webhook, error)
- func (srv *Webhooks) WithCreateAuthPassword(v string) CreateOption
- func (srv *Webhooks) WithCreateAuthUsername(v string) CreateOption
- func (srv *Webhooks) WithCreateEnabled(v bool) CreateOption
- func (srv *Webhooks) WithCreateSecret(v string) CreateOption
- func (srv *Webhooks) WithCreateTls(v bool) CreateOption
- func (srv *Webhooks) WithListQueries(v []string) ListOption
- func (srv *Webhooks) WithListTotal(v bool) ListOption
- func (srv *Webhooks) WithUpdateAuthPassword(v string) UpdateOption
- func (srv *Webhooks) WithUpdateAuthUsername(v string) UpdateOption
- func (srv *Webhooks) WithUpdateEnabled(v bool) UpdateOption
- func (srv *Webhooks) WithUpdateSecretSecret(v string) UpdateSecretOption
- func (srv *Webhooks) WithUpdateTls(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
Tls bool
AuthUsername string
AuthPassword string
Secret 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
Tls bool
AuthUsername string
AuthPassword string
// contains filtered or unexported fields
}
func (UpdateOptions) New ¶
func (options UpdateOptions) New() *UpdateOptions
type UpdateSecretOption ¶
type UpdateSecretOption func(*UpdateSecretOptions)
type UpdateSecretOptions ¶
type UpdateSecretOptions struct {
Secret string
// contains filtered or unexported fields
}
func (UpdateSecretOptions) New ¶
func (options UpdateSecretOptions) New() *UpdateSecretOptions
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) UpdateSecret ¶
func (srv *Webhooks) UpdateSecret(WebhookId string, optionalSetters ...UpdateSecretOption) (*models.Webhook, error)
UpdateSecret update the webhook signing key. This endpoint can be used to regenerate the signing key used to sign and validate payload deliveries for a specific webhook.
func (*Webhooks) WithCreateAuthPassword ¶
func (srv *Webhooks) WithCreateAuthPassword(v string) CreateOption
func (*Webhooks) WithCreateAuthUsername ¶
func (srv *Webhooks) WithCreateAuthUsername(v string) CreateOption
func (*Webhooks) WithCreateEnabled ¶
func (srv *Webhooks) WithCreateEnabled(v bool) CreateOption
func (*Webhooks) WithCreateSecret ¶
func (srv *Webhooks) WithCreateSecret(v string) CreateOption
func (*Webhooks) WithCreateTls ¶
func (srv *Webhooks) WithCreateTls(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) WithUpdateAuthPassword ¶
func (srv *Webhooks) WithUpdateAuthPassword(v string) UpdateOption
func (*Webhooks) WithUpdateAuthUsername ¶
func (srv *Webhooks) WithUpdateAuthUsername(v string) UpdateOption
func (*Webhooks) WithUpdateEnabled ¶
func (srv *Webhooks) WithUpdateEnabled(v bool) UpdateOption
func (*Webhooks) WithUpdateSecretSecret ¶
func (srv *Webhooks) WithUpdateSecretSecret(v string) UpdateSecretOption
func (*Webhooks) WithUpdateTls ¶
func (srv *Webhooks) WithUpdateTls(v bool) UpdateOption