Documentation
¶
Index ¶
- func Query(db *datastore.Datastore) datastore.Query
- type Subscriber
- func (s *Subscriber) BeforeCreate() error
- func (s *Subscriber) BeforeUpdate(previous *Subscriber) error
- func (s *Subscriber) Load(ps []datastore.Property) (err error)
- func (s Subscriber) Md5() string
- func (s Subscriber) MergeFields() map[string]interface{}
- func (s Subscriber) Name() string
- func (s *Subscriber) Normalize()
- func (s *Subscriber) Save() (ps []datastore.Property, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Subscriber ¶
type Subscriber struct {
mixin.Model[Subscriber]
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
FormId string `json:"formId"`
UserId string `json:"userId,omitempty"`
Unsubscribed bool `json:"unsubscribed"`
UnsubscribeDate time.Time `json:"unsubscribeDate,omitempty"`
Client client.Client `json:"client"`
Tags []string `json:"tags" orm:"default:[]"`
Metadata Map `json:"metadata" datastore:"-" orm:"default:{}"`
Metadata_ string `json:"-" datastore:",noindex"`
}
func New ¶
func New(db *datastore.Datastore) *Subscriber
New creates a new Subscriber wired to the given datastore.
func (*Subscriber) BeforeUpdate ¶
func (s *Subscriber) BeforeUpdate(previous *Subscriber) error
func (Subscriber) Md5 ¶
func (s Subscriber) Md5() string
func (Subscriber) MergeFields ¶
func (s Subscriber) MergeFields() map[string]interface{}
func (Subscriber) Name ¶
func (s Subscriber) Name() string
func (*Subscriber) Normalize ¶
func (s *Subscriber) Normalize()
Click to show internal directories.
Click to hide internal directories.