示例#1
0
func (r *Resource) initClient() {
	r.mutex.Lock()
	defer r.mutex.Unlock()

	r.client = smsintel.NewSmsIntel(r.config.GetString(ConfigSmsLogin), r.config.GetString(ConfigSmsPassword))
}
示例#2
0
func NewSmsIntelProvider(login string, password string) *SmsIntel {
	return &SmsIntel{
		client: smsintel.NewSmsIntel(login, password),
	}
}