func (r *Resource) initClient() { r.mutex.Lock() defer r.mutex.Unlock() r.client = smsintel.NewSmsIntel(r.config.GetString(ConfigSmsLogin), r.config.GetString(ConfigSmsPassword)) }
func NewSmsIntelProvider(login string, password string) *SmsIntel { return &SmsIntel{ client: smsintel.NewSmsIntel(login, password), } }