niki/adapter/sms_provider/adapter.go

18 lines
299 B
Go
Raw Normal View History

package smsprovider
type Config struct {
Host string `koanf:"host"`
Port int `koanf:"port"`
}
type Adapter struct{}
//nolint
func New(config Config) Adapter {
// rdb := redis.NewClient(&redis.Options{
// Addr: fmt.Sprintf("%s:%d", config.Host, config.Port),
//})
return Adapter{}
}