form

package
v0.0.0-...-4fcc27b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateForm

func CreateForm(uuid string, fieldArray []Field) *goform.Form

func CreateFormWithUrl

func CreateFormWithUrl(url, uuid string, fieldArray []Field) *goform.Form

func GetRouter

func GetRouter(formController *FormController) *chi.Mux

func GetRouterWithUrl

func GetRouterWithUrl(formUrl string, formController *FormController) *chi.Mux

func ReturnHashURLS

func ReturnHashURLS() string

func ReturnURLS

func ReturnURLS() urls

Types

type Field

type Field struct {
	Name     string
	HtmlType string
	Value    interface{}
}

func NewField

func NewField(name, htmltype string, value interface{}) *Field

func (Field) GetHtmlType

func (f Field) GetHtmlType() string

func (Field) GetName

func (f Field) GetName() string

func (Field) GetValue

func (f Field) GetValue() interface{}

type FormController

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

func NewFormController

func NewFormController(form *goformit.Form, clientGandalf *goclient.ClientGandalf) *FormController

func (FormController) Form

type FormPayload

type FormPayload struct {
	Fields []Field
}

type FormServer

type FormServer struct {
	Rooturl string
	Url     string
	// contains filtered or unexported fields
}

func NewFormServer

func NewFormServer(uuid string, payload FormPayload, clientGandalf *goclient.ClientGandalf) *FormServer

func (FormServer) Run

func (f FormServer) Run()

Jump to

Keyboard shortcuts

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