form

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package form implements the form ruleset type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Id         string
	IsLongTerm bool
	Title      string
	Field      []types.FormField
	Handler    func(ctx types.Context, values types.KV) types.MsgPayload
}

func (Rule) ID added in v0.30.1

func (r Rule) ID() string

func (Rule) TYPE added in v0.30.1

func (Rule) TYPE() types.RulesetType

type Ruleset

type Ruleset []Rule

func (Ruleset) ProcessForm

func (r Ruleset) ProcessForm(ctx types.Context, values types.KV) (types.MsgPayload, error)

Jump to

Keyboard shortcuts

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