webhook

package
v0.0.0-...-ae6e62c Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpsertWebhookSignal = "UpsertWebhookSignal"
)
View Source
const (
	WebhookName = "TicketFu Webhook"
)

Variables

This section is empty.

Functions

func WebhookWorkflow

func WebhookWorkflow(ctx workflow.Context, webhook Webhook) error

Types

type Activity

type Activity struct {
	// contains filtered or unexported fields
}

func NewActivity

func NewActivity(zClient zendesk.Client) *Activity

func (*Activity) CreateTrigger

func (a *Activity) CreateTrigger(ctx context.Context, input CreateTriggerInput) (*CreateTriggerOutput, error)

func (*Activity) CreateWebhook

func (a *Activity) CreateWebhook(ctx context.Context, input CreateWebhookInput) (*CreateWebhookOutput, error)

type CreateTriggerInput

type CreateTriggerInput struct {
	WebhookID string
}

type CreateTriggerOutput

type CreateTriggerOutput struct {
	TriggerID string
}

type CreateWebhookInput

type CreateWebhookInput struct {
	Webhook Webhook
}

type CreateWebhookOutput

type CreateWebhookOutput struct {
	WebhookID string
}

type UpsertWebhookInput

type UpsertWebhookInput struct {
	Webhook Webhook
}

type Webhook

type Webhook struct {
	ID             string
	BaseURL        string
	ServerAPIToken string
}

Jump to

Keyboard shortcuts

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