-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define the implementation standard for developing checkers/notifiers #4
Comments
As for now, I am not sure what the best structure for the notifiers is. So I think we should first start by implementing new checkers. Contribution Flow
Configuration InterfaceSince this is a compiled tool not a library, pandik's main user interface is {
"type": "name-of-the-checker",
"url": "urloftheserver.com",
"freq": "10m",
"data": {
"key": "value",
"key2": "value2"
}
} First three fields (type, url, freq) of this json is must have for each monitor. The data field is optional, and it contains the required data for the specific type of checker. For example for a ftp server checker, this might me username and password. Implementation Details
Note: I will keep this post up to date. So please check frequently. I might move this in to a wiki page in the future. |
Hi, I think the best approach to organize
What do you think? |
I agree with @gedex: "pluginify" the checkers and notifiers to facilitate the development. |
Maybe in the future when we have 100s of checkers/notifiers, I can see it being useful but We can already create separate files if checker/notifier is complicated enough. so What is the advantage of putting checkers and notifiers in a separate package/directory. |
I don't have any obvious reason other than organizing the structure. But yeah, they can go to separate files under the package main. |
Hi
Could you please define a standard/API or some guidelines so that anyone could contribute new checkers/notifiers to this project?
About checking protocols/applications that aren't natively supported by the standard Go lib: would you prefer use existing external packages or strictly develop yours to avoid external dependencies?
m.
The text was updated successfully, but these errors were encountered: