forms

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: 0BSD Imports: 2 Imported by: 0

README

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	ID       int64  `json:"id"`
	FormID   int64  `json:"formID"`
	Label    string `json:"label"`
	Type     string `json:"type"`
	Position int    `json:"position"` // index
	Required bool   `json:"required"`
	Priority int    `json:"priority"`
	Search   bool   `json:"search"`
}

type Form

type Form struct {
	ID       int64  `json:"id"`
	Name     string `json:"name"`
	Required bool   `json:"required"`
	Live     bool   `json:"live"`
}

func GetForms added in v0.1.4

func GetForms(db *sql.DB) ([]Form, error)

type Option

type Option struct {
	ID        int64  `json:"id"`
	ElementID int64  `json:"elementID"`
	Name      string `json:"name"`
	Position  int    `json:"position"` // index
}

Jump to

Keyboard shortcuts

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