dto

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWebhookInput

type CreateWebhookInput struct {
	UserId  string
	SpaceId *string
	Name    string
	Url     string
	Events  []string
}

Create webhook

type CreateWebhookOutput

type CreateWebhookOutput struct {
	Id     string
	Name   string
	Url    string
	Secret string
	Events []string
	Active bool
}

type DeleteWebhookInput

type DeleteWebhookInput struct {
	UserId    string
	WebhookId string
}

Delete webhook

type DeliveryItem

type DeliveryItem struct {
	Id         string
	Event      string
	StatusCode int
	Success    bool
	Duration   int
	CreatedAt  time.Time
}

type GetDeliveriesInput

type GetDeliveriesInput struct {
	UserId    string
	WebhookId string
	Limit     int
}

Get deliveries

type GetDeliveriesOutput

type GetDeliveriesOutput struct {
	Deliveries []DeliveryItem
}

type GetWebhookInput

type GetWebhookInput struct {
	UserId    string
	WebhookId string
}

Get webhook

type GetWebhookOutput

type GetWebhookOutput struct {
	Id           string
	Name         string
	Url          string
	Secret       string
	SpaceId      *string
	SpaceName    *string
	Events       []string
	Active       bool
	LastError    string
	LastErrorAt  *time.Time
	SuccessCount int
	FailureCount int
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

type ListWebhooksInput

type ListWebhooksInput struct {
	UserId string
}

List webhooks

type ListWebhooksOutput

type ListWebhooksOutput struct {
	Webhooks []WebhookItem
}

type TriggerWebhookInput

type TriggerWebhookInput struct {
	Event   string
	SpaceId *string
	Payload map[string]interface{}
}

Trigger webhook (internal)

type UpdateWebhookInput

type UpdateWebhookInput struct {
	UserId    string
	WebhookId string
	Name      *string
	Url       *string
	Events    *[]string
	Active    *bool
}

Update webhook

type WebhookItem

type WebhookItem struct {
	Id           string
	Name         string
	Url          string
	SpaceId      *string
	SpaceName    *string
	Events       []string
	Active       bool
	LastError    string
	LastErrorAt  *time.Time
	SuccessCount int
	FailureCount int
	CreatedAt    time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL