forked from ebhomengo/niki
1
0
Fork 0
niki/adapter/kavenegar/adapter.go

18 lines
332 B
Go

package kavenegar
import "github.com/kavenegar/kavenegar-go"
type Config struct {
APIKey string `koanf:"api_key"`
Sender string `koanf:"sender"`
}
type Adapter struct {
config Config
adapter *kavenegar.Kavenegar
}
func New(config Config) *Adapter {
return &Adapter{config: config, adapter: kavenegar.New(config.APIKey)}
}