func NewHttpLoadbalancer(params params.ModuleParams) *HttpLoadbalancer { strategyParsed := sanitizePolicy(params.GetStringOrDefault("strategy", ROUND_ROBIN_STRATEGY)) urlParsed := mustParseUrl(params.GetString("url")) return &HttpLoadbalancer{ strategy: strategyParsed, url: urlParsed, } }
func NewExec(params params.ModuleParams) *Exec { return &Exec{ command: params.GetString("command"), } }
func NewBasicAuth(params params.ModuleParams) *BasicAuth { return &BasicAuth{ username: params.GetString("username"), password: params.GetString("password"), } }