models

package
v0.0.0-...-9b9c579 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrganizationConfig

type OrganizationConfig struct {
	OrganizationName string                    `yaml:"organization_name"`
	Website          string                    `yaml:"website"`
	Contact          OrganizationConfigContact `yaml:"contact"`
	OrganizationType []string                  `yaml:"organization_type"`
	Regulation       []string                  `yaml:"regulation"`
	Notes            string                    `yaml:"notes"`
}

type OrganizationConfigContact

type OrganizationConfigContact struct {
	Mail  []OrganizationConfigContactInfo `yaml:"mail"`
	Email []OrganizationConfigContactInfo `yaml:"email"`
	Form  []OrganizationConfigContactInfo `yaml:"form"`
}

func (*OrganizationConfigContact) AddEmail

func (c *OrganizationConfigContact) AddEmail(address string, usage []string)

func (*OrganizationConfigContact) AddMail

func (c *OrganizationConfigContact) AddMail(address string, usage []string)

func (*OrganizationConfigContact) AddWebsiteForm

func (c *OrganizationConfigContact) AddWebsiteForm(address string, usage []string)

type OrganizationConfigContactInfo

type OrganizationConfigContactInfo struct {
	Address string   `yaml:"address"`
	Usage   []string `yaml:"usage"`
}

type SmtpConfig

type SmtpConfig struct {
	Hostname string `yaml:"hostname"`
	Port     int    `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type UserConfig

type UserConfig struct {
	FirstName      string   `yaml:"first_name" mapstructure:"first_name"`
	LastName       string   `yaml:"last_name" mapstructure:"last_name"`
	EmailAddresses []string `yaml:"email_addresses" mapstructure:"email_addresses"`
	MailAddresses  []string `yaml:"mail_addresses" mapstructure:"mail_addresses"`
	PhoneNumbers   []string `yaml:"phone_numbers" mapstructure:"phone_numbers"`
}

Jump to

Keyboard shortcuts

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