Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Submit = form.Submit
View Source
var Subscribe = form.Subscribe
View Source
var SubscriberAlreadyExists = errors.New("Subscriber already exists")
Functions ¶
Types ¶
type Form ¶
type Form struct {
mixin.Model[Form]
// Name of list
Name string `json:"name"`
// Type of form
Type form.Type `json:"type"`
// Whether to send email confirmation
SendWelcome bool `json:"sendWelcome"`
// Overwrites default Template Id
WelcomeTemplateId string `json:"welcomeTemplateId"`
// Email list settings for this list
EmailList email.List `json:"emailList,omitempty"`
// Email forwarding
Forward struct {
Email string `json:"email"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
} `json:"forward"`
// Thank you settings
ThankYou ThankYou `json:"thankyou"`
// Conversion tracking info
Facebook struct {
Id string `json:"id"`
Value string `json:"value"`
Currency string `json:"currency"`
} `json:"facebook"`
Google struct {
Category string `json:"category"`
Name string `json:"name"`
} `json:"google"`
Mailchimp struct {
ListId string `json:"listId"`
APIKey string `json:"apiKey"`
} `json:"mailchimp,omitempty"`
}
func (*Form) AddSubscriber ¶
func (f *Form) AddSubscriber(s *subscriber.Subscriber) error
Click to show internal directories.
Click to hide internal directories.