func createProxy(cfg *config, challenger *LndChallenger,
	etcdClient *clientv3.Client) (*proxy.Proxy, error) {

	minter := mint.New(&mint.Config{
		Challenger:     challenger,
		Secrets:        newSecretStore(etcdClient),
		ServiceLimiter: newStaticServiceLimiter(cfg.Services),
	})
	authenticator := auth.NewLsatAuthenticator(minter, challenger)
	return proxy.New(
		authenticator, cfg.Services, cfg.ServeStatic, cfg.StaticRoot,
	)
}
// createProxy creates the proxy with all the services it needs.
createProxy creates the proxy with all the services it needs.
// createProxy creates the proxy with all the services it needs .
func createProxy(cfg *config, challenger *LndChallenger,
	etcdClient *clientv3.Client) (*proxy.Proxy, error) {
	minter := mint.New(&mint.Config{
		Challenger:     challenger,
		Secrets:        newSecretStore(etcdClient),
		ServiceLimiter: newStaticServiceLimiter(cfg.Services),
	})
	authenticator := auth.NewLsatAuthenticator(minter, challenger)
	return proxy.New(
		authenticator, cfg.Services, cfg.ServeStatic, cfg.StaticRoot,
	)
}
func createProxy ( cfg * config , challenger * LndChallenger , etcdClient * clientv3 . Client ) ( * proxy . Proxy , error ) { minter := mint . New ( & mint . Config { Challenger : challenger , Secrets : newSecretStore ( etcdClient ) , ServiceLimiter : newStaticServiceLimiter ( cfg . Services ) , } ) authenticator := auth . NewLsatAuthenticator ( minter , challenger ) return proxy . New ( authenticator , cfg . Services , cfg . ServeStatic , cfg . StaticRoot , ) }
createProxy creates the proxy with all the services it needs.
createProxy creates the proxy with all the services it needs .