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) Defaults()
- func (s *Subscriber) Init(db *datastore.Datastore)
- func (s Subscriber) Kind() string
- 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.BaseModel
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"`
Metadata Map `json:"metadata" datastore:"-"`
Metadata_ string `json:"-" datastore:",noindex"`
}
func New ¶
func New(db *datastore.Datastore) *Subscriber
func (*Subscriber) BeforeUpdate ¶
func (s *Subscriber) BeforeUpdate(previous *Subscriber) error
func (*Subscriber) Defaults ¶
func (s *Subscriber) Defaults()
func (*Subscriber) Init ¶
func (s *Subscriber) Init(db *datastore.Datastore)
func (Subscriber) Kind ¶
func (s Subscriber) Kind() string
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.