Documentation
¶
Index ¶
- func RegisterHandlers(server *server.Server, grp *huma.Group)
- type CreateWebhookInput
- type CreateWebhookResponse
- type DeleteWebhookInput
- type DeleteWebhookResponse
- type GetWebhookInput
- type GetWebhookResponse
- type HandlerGroup
- func (self *HandlerGroup) CreateWebhook(ctx context.Context, input *CreateWebhookInput) (*CreateWebhookResponse, error)
- func (self *HandlerGroup) DeleteWebhook(ctx context.Context, input *DeleteWebhookInput) (*DeleteWebhookResponse, error)
- func (self *HandlerGroup) GetWebhook(ctx context.Context, input *GetWebhookInput) (*GetWebhookResponse, error)
- func (self *HandlerGroup) ListWebhooks(ctx context.Context, input *ListWebhooksInput) (*ListWebhooksResponse, error)
- func (self *HandlerGroup) UpdateWebhook(ctx context.Context, input *UpdateWebhookInput) (*UpdateWebhookResponse, error)
- type ListWebhooksInput
- type ListWebhooksResponse
- type UpdateWebhookInput
- type UpdateWebhookResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateWebhookInput ¶
type CreateWebhookInput struct {
server.BaseAuthInput
Body *models.WebhookCreateInput
}
type CreateWebhookResponse ¶
type CreateWebhookResponse struct {
Body struct {
Data *models.WebhookResponse `json:"data"`
}
}
type DeleteWebhookInput ¶
type DeleteWebhookInput struct {
server.BaseAuthInput
Body struct {
ID uuid.UUID `json:"id" required:"true"`
Type schema.WebhookType `json:"type" required:"true"`
TeamID uuid.UUID `json:"team_id" required:"true"`
// ProjectID is optional, but required if the webhook type is project
ProjectID *uuid.UUID `json:"project_id" required:"false"`
}
}
type DeleteWebhookResponse ¶
type DeleteWebhookResponse struct {
Body struct {
Data server.DeletedResponse `json:"data"`
}
}
type GetWebhookInput ¶
type GetWebhookInput struct {
server.BaseAuthInput
models.WebhookGetInput
}
Get a single webhook by ID
type GetWebhookResponse ¶
type GetWebhookResponse struct {
Body struct {
Data *models.WebhookResponse `json:"data"`
}
}
type HandlerGroup ¶
type HandlerGroup struct {
// contains filtered or unexported fields
}
func (*HandlerGroup) CreateWebhook ¶
func (self *HandlerGroup) CreateWebhook(ctx context.Context, input *CreateWebhookInput) (*CreateWebhookResponse, error)
func (*HandlerGroup) DeleteWebhook ¶
func (self *HandlerGroup) DeleteWebhook(ctx context.Context, input *DeleteWebhookInput) (*DeleteWebhookResponse, error)
func (*HandlerGroup) GetWebhook ¶
func (self *HandlerGroup) GetWebhook(ctx context.Context, input *GetWebhookInput) (*GetWebhookResponse, error)
GetWebhook handles getting a single webhook by ID
func (*HandlerGroup) ListWebhooks ¶
func (self *HandlerGroup) ListWebhooks(ctx context.Context, input *ListWebhooksInput) (*ListWebhooksResponse, error)
ListWebhooks handles listing webhooks for a team or project
func (*HandlerGroup) UpdateWebhook ¶
func (self *HandlerGroup) UpdateWebhook(ctx context.Context, input *UpdateWebhookInput) (*UpdateWebhookResponse, error)
type ListWebhooksInput ¶
type ListWebhooksInput struct {
server.BaseAuthInput
models.WebhookListInput
}
type ListWebhooksResponse ¶
type ListWebhooksResponse struct {
Body struct {
Data []*models.WebhookResponse `json:"data" nullable:"false"`
}
}
type UpdateWebhookInput ¶
type UpdateWebhookInput struct {
server.BaseAuthInput
Body *models.WebhookUpdateInput
}
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct {
Body struct {
Data *models.WebhookResponse `json:"data"`
}
}
Click to show internal directories.
Click to hide internal directories.