// NewHandler creates a new Query-Handler.
NewHandler creates a new Query-Handler.
// NewHandler creates a new Query - Handler .
func NewHandler(config *HandlerConfig) (*Handler, error) {
	if config.Coll == nil {
		return nil, errors.New("Coll cannot be nil")
	}
	if config.ServiceName == "" {
		return nil, errors.New("ServiceName cannot be blank")
	}
	if config.ResultProd == nil {
		return nil, errors.New("ResultProd cannot be nil")
	}
	return &Handler{
		config,
	}, nil
}
func NewHandler ( config * HandlerConfig ) ( * Handler , error ) { if config . Coll == nil { return nil , errors . New ( " " ) } if config . ServiceName == " " { return nil , errors . New ( " " ) } if config . ResultProd == nil { return nil , errors . New ( " " ) } return & Handler { config , } , nil }
NewHandler creates a new Query-Handler.
NewHandler creates a new Query - Handler .