2024-01-14 15:53:37 +00:00
|
|
|
package smsprovider
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
Host string `koanf:"host"`
|
|
|
|
Port int `koanf:"port"`
|
|
|
|
}
|
|
|
|
|
2024-01-15 10:33:24 +00:00
|
|
|
type Adapter struct{}
|
2024-01-14 15:53:37 +00:00
|
|
|
|
2024-01-15 10:33:24 +00:00
|
|
|
//nolint
|
2024-01-14 15:53:37 +00:00
|
|
|
func New(config Config) Adapter {
|
2024-01-15 10:33:24 +00:00
|
|
|
// rdb := redis.NewClient(&redis.Options{
|
2024-01-14 15:53:37 +00:00
|
|
|
// Addr: fmt.Sprintf("%s:%d", config.Host, config.Port),
|
|
|
|
//})
|
|
|
|
|
|
|
|
return Adapter{}
|
|
|
|
}
|