// Code generated by Wire. DO NOT EDIT.

//go:generate go run github.com/google/wire/cmd/wire
//go:build !wireinject
// +build !wireinject

package updater

import (
	"go-dyndns/log"
	"go-dyndns/util"
)

// Injectors from wire.go:

func CreateUpdater(logger log.Logger, httpClient util.HttpClient) (Updater, error) {
	updaterDynDnsUpdaterConfig, err := loadDynDnsConfig()
	if err != nil {
		return nil, err
	}
	passwordFilePath := updaterDynDnsUpdaterConfig.PasswordFile
	passwordProvider := util.NewFilePasswordProvider(passwordFilePath)
	updaterDynDnsUpdater := newDynDnsUpdater(updaterDynDnsUpdaterConfig, passwordProvider, logger, httpClient)
	return updaterDynDnsUpdater, nil
}
