forms

package
v0.0.0-...-9391566 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOns

type AddOns struct {
	OnlineService       bool `xml:"onlineService" json:"onlineService" form:"onlineService"`
	LargerStorage       bool `xml:"largerStorage" json:"largerStorage" form:"largerStorage"`
	CustomizableProfile bool `xml:"customizableProfile" json:"customizableProfile" form:"customizableProfile"`
}

type Handler

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

func New

func New(db dbT.DB, v *validator.Validate, l *slog.Logger) *Handler

func (*Handler) Add

func (h *Handler) Add(c echo.Context) error

type PostRequestBody

type PostRequestBody struct {
	Name   string  `xml:"name" json:"name" form:"name" validate:"required"`
	Email  string  `xml:"email" json:"email" form:"email" validate:"required,email"`
	Phone  string  `xml:"phone" json:"phone" form:"phone" validate:"required,e164"`
	Plan   string  `xml:"plan" json:"plan" form:"plan" validate:"required,oneof=arcade advanced pro"`
	Period string  `xml:"period" json:"period" form:"period" validate:"required,oneof=monthly yearly"`
	AddOns *AddOns `xml:"addOns" json:"addOns" form:"addOns" validate:"required"`
}

Jump to

Keyboard shortcuts

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