webhook

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package webhook implements the daemon side of the relay: it provisions a webhook (registering its ed25519 public key), holds an authenticated WebSocket to the relay, and turns content-free "poke" events into debounced update triggers. A poke never carries an image — it only asks the daemon to run its normal, registry-derived check sooner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client manages the persistent relay connection.

func New

func New(baseURL, dataDir string, log zerolog.Logger, trigger func(reason string)) (*Client, error)

New loads or creates the keypair, then loads or provisions the webhook.

func (*Client) PokeURL

func (c *Client) PokeURL() string

PokeURL returns the public trigger URL (for display).

func (*Client) Run

func (c *Client) Run(ctx context.Context)

Run holds the connection, reconnecting with full-jitter backoff until ctx ends.

Jump to

Keyboard shortcuts

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