You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The New method intakes onee functional parameter for using custom route path and credentials. I'm using this project as a library for my usecase. And picking routes / credentials from file is not so desirable for the usecase. Can we just add one method for each in which we can pass creds / routes in form of array and not filepath ? If yes then I would make a pr for same 🤔
Context
Please select one:
ullaakut/cameradar
Please select one:
Environment
My operating system:
OS version: arch 5.8.11-arch1-1
Feature Request
The New method intakes onee functional parameter for using custom route path and credentials. I'm using this project as a library for my usecase. And picking routes / credentials from file is not so desirable for the usecase. Can we just add one method for each in which we can pass creds / routes in form of array and not filepath ? If yes then I would make a pr for same 🤔
Proposal
WithRoutes([]string) (*Scanner)
cmrdr.WithRoutes([]string{"/route1", "/route2"})
Same with credentials. We will have to handle cases in which both/none/either of the two is provided.
The text was updated successfully, but these errors were encountered: