webhook

package
v0.3.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookDeployer

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

func New

func NewWithLogger

func NewWithLogger(config *WebhookDeployerConfig, logger logger.Logger) (*WebhookDeployer, error)

func (*WebhookDeployer) Deploy

func (d *WebhookDeployer) Deploy(ctx context.Context, certPem string, privkeyPem string) (*deployer.DeployResult, error)

type WebhookDeployerConfig

type WebhookDeployerConfig struct {
	// Webhook URL。
	WebhookUrl string `json:"webhookUrl"`
	// Webhook 回调数据(JSON 格式)。
	WebhookData string `json:"webhookData,omitempty"`
}

Jump to

Keyboard shortcuts

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