Versions in this module Expand all Collapse all v0 v0.16.1 Jun 22, 2020 v0.16.0 Jun 9, 2020 Changes in this version + func Client(miniconfig minimarketo.ClientConfig) (minimarketo.Client, error) + func Miniconfig(config Config) minimarketo.ClientConfig + type Config struct + ClinicRole string + ID string + PatientRole string + Secret string + Timeout uint + URL string + func (c *Config) Validate() error + type Connector struct + func (m *Connector) CreateListMembershipForUser(newUser User) + func (m *Connector) FindLead(listEmail string) (int, bool, error) + func (m *Connector) IsAvailable() bool + func (m *Connector) TypeForUser(user User) string + func (m *Connector) UpdateListMembershipForUser(oldUser User, newUser User) + func (m *Connector) UpsertListMember(role string, listEmail string, newEmail string) error + func (m *Connector) UpsertListMembership(oldUser User, newUser User) error + type CreateData struct + Action string + Input []Input + LookupField string + type Input struct + Email string + ID int + UserType string + type LeadResult struct + Created string + Email string + FirstName string + ID int + LastName string + Updated string + UserType string + type Manager interface + CreateListMembershipForUser func(newUser User) + IsAvailable func() bool + UpdateListMembershipForUser func(oldUser User, newUser User) + func NewManager(logger *log.Logger, config Config) (Manager, error) + type RecordResult struct + ID int + Reasons []struct{ ... } + Status string + type User interface + Email func() string + IsClinic func() bool