formwire

package
v1.153.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package formwire assembles forms on the platform's server (#2177-#2180): each accepted submission stored in the webhook source made for its form, platform.decrypt answered, the viewer key an embedded authenticated form's token is signed with, and the reader of a form's submissions. It is the composition root's, split out of internal/httpserver for its size budget.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(p *platform.Platform, hooks *webhookwire.Webhooks)

Attach makes forms store their submissions in webhook sources and answers platform.decrypt (#2178, #2179), where there are endpoints and webhooks.

func Submissions

func Submissions(p *platform.Platform) *epsubmit.Reader

Submissions reads a form's stored submissions for its owner (#2180), through the Trino connection its source is on; nil without a database or a Trino toolkit.

func ViewerKey

func ViewerKey(p *platform.Platform) []byte

ViewerKey is the key an embedded authenticated form's viewer token is signed with (#2177), the one the endpoint layer opens it with; nil where there are no endpoints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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