forms

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissedDomains = errors.New("missed domains")
	ErrWrongDomain   = errors.New("wrong domain")
)
View Source
var (
	ErrMissedAddresses = errors.New("missed addresses")
	ErrWrongAddress    = errors.New("wrong address")
)

Functions

This section is empty.

Types

type Former

type Former interface {
	ParseAndValidate(message interface{}) error
	ConvertToMap() map[string]interface{}
}

type ResolveAddressesForm

type ResolveAddressesForm struct {
	Domains []string
}

func NewResolveAddressesForm

func NewResolveAddressesForm() *ResolveAddressesForm

func (*ResolveAddressesForm) ConvertToMap

func (f *ResolveAddressesForm) ConvertToMap() map[string]interface{}

func (*ResolveAddressesForm) ParseAndValidate

type ResolveDomainsForm

type ResolveDomainsForm struct {
	Addresses []string
}

func NewResolveDomainsForm

func NewResolveDomainsForm() *ResolveDomainsForm

func (*ResolveDomainsForm) ConvertToMap

func (f *ResolveDomainsForm) ConvertToMap() map[string]interface{}

func (*ResolveDomainsForm) ParseAndValidate

Jump to

Keyboard shortcuts

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