forked from ebhomengo/niki
18 lines
291 B
Go
18 lines
291 B
Go
|
package smsprovider
|
||
|
|
||
|
type Config struct {
|
||
|
Host string `koanf:"host"`
|
||
|
Port int `koanf:"port"`
|
||
|
}
|
||
|
|
||
|
type Adapter struct {
|
||
|
}
|
||
|
|
||
|
func New(config Config) Adapter {
|
||
|
//rdb := redis.NewClient(&redis.Options{
|
||
|
// Addr: fmt.Sprintf("%s:%d", config.Host, config.Port),
|
||
|
//})
|
||
|
|
||
|
return Adapter{}
|
||
|
}
|