form

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

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
}

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