Replies: 1 comment 2 replies
-
Hi @mikerott, so yes your point is valid, to allow more diverse use-cases the best course of action would be to convert the Catalog to an interface. This will fix all your questions about first two points. The third point can be easily added by changing the We can create an issue to convert Catalog to interface and add a io.Reader and proceed from there, doing changes as required. |
Beta Was this translation helpful? Give feedback.
-
Hi. My team is using Nuclei embedded as a library (documented here).
As I was integrating the sample code, I noticed several things;
TemplateID
(and otherTemplate*
), implying one template, but also aCatalog
field, implyingmany
templates? Should this be refactored for clarity?I guess I should ask a more general question about embedded usage, which I realize may lead to a much deeper requirement of refactoring for the embedded use case. Ultimately, I'd like sample code that:
This is what I am ultimately running at this point. Notice I'm not showing functions like
parseSelfContainedRequests
andconvertRequestToProtocolsRequest
but due to how I had to embed Nuclei, I had to copy these private (lower-case) functions out of the Nuclei codebase. I'll gladly take your critique!Beta Was this translation helpful? Give feedback.
All reactions