code: func NewService(config Config, sup Support) *service {
  	s := &service{
  		auth: newAuthCache(sup, authCacheConfig{
  			enabled:             config.AuthCacheEnabled,
  			maxCacheSize:        config.AuthCacheMaxSize,
  			purgeRetentionRatio: config.AuthCachePurgeRetentionRatio,
  		}),
  		Support: sup,
  	}
  	s.channelDispatchers = map[discovery.QueryType]dispatcher{
  		discovery.ConfigQueryType:         s.configQuery,
  		discovery.ChaincodeQueryType:      s.chaincodeQuery,
  		discovery.PeerMembershipQueryType: s.channelMembershipResponse,
  	}
  	s.localDispatchers = map[discovery.QueryType]dispatcher{
  		discovery.LocalMembershipQueryType: s.localMembershipResponse,
  	}
  	logger.Info("Created with config", config)
  	return s
  }
docs: // NewService creates a new discovery service instance