Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
mikrotik-hosts-parser
Main CLI application entrypoint.
|
Main CLI application entrypoint. |
internal
|
|
pkg/breaker
Package breaker provides OSSignals struct for OS signals handling (with context).
|
Package breaker provides OSSignals struct for OS signals handling (with context). |
pkg/cache
Package cache contains different byte-cache implementations.
|
Package cache contains different byte-cache implementations. |
pkg/checkers
Package checkers contains different checkers.
|
Package checkers contains different checkers. |
pkg/cli
Package cli contains CLI command handlers.
|
Package cli contains CLI command handlers. |
pkg/cli/healthcheck
Package healthcheck contains CLI `healthcheck` command implementation.
|
Package healthcheck contains CLI `healthcheck` command implementation. |
pkg/cli/serve
Package serve contains CLI `serve` command implementation.
|
Package serve contains CLI `serve` command implementation. |
pkg/cli/version
Package version contains CLI `version` command implementation.
|
Package version contains CLI `version` command implementation. |
pkg/config
Package config contains application configuration struct with the most useful functions.
|
Package config contains application configuration struct with the most useful functions. |
pkg/env
Package env contains all about environment variables, that can be used by current application.
|
Package env contains all about environment variables, that can be used by current application. |
pkg/http
Package http contains HTTP server and all required stuff for HTTP server working.
|
Package http contains HTTP server and all required stuff for HTTP server working. |
pkg/http/fileserver
Package fileserver contains static files server implementation.
|
Package fileserver contains static files server implementation. |
pkg/http/handlers/api/settings
Package settings contains API handler for application settings getting.
|
Package settings contains API handler for application settings getting. |
pkg/http/handlers/api/version
Package version contains version API handler.
|
Package version contains version API handler. |
pkg/http/handlers/generate
Package generate contains RouterOS script generation handler.
|
Package generate contains RouterOS script generation handler. |
pkg/http/handlers/healthz
Package healthz contains healthcheck handler.
|
Package healthz contains healthcheck handler. |
pkg/http/handlers/metrics
Package metrics contains HTTP handler for application metrics (prometheus format) generation.
|
Package metrics contains HTTP handler for application metrics (prometheus format) generation. |
pkg/http/middlewares/logreq
Package logreq contains middleware for HTTP requests logging using "zap" package.
|
Package logreq contains middleware for HTTP requests logging using "zap" package. |
pkg/http/middlewares/nocache
Package nocache contains middleware for HTTP response caching disabling.
|
Package nocache contains middleware for HTTP response caching disabling. |
pkg/http/middlewares/panic
Package panic contains middleware for panics (inside HTTP handlers) logging using "zap" package.
|
Package panic contains middleware for panics (inside HTTP handlers) logging using "zap" package. |
pkg/logger
Package logger contains functions for a working with application logging.
|
Package logger contains functions for a working with application logging. |
pkg/metrics
Package metrics contains custom prometheus metrics and registry factories.
|
Package metrics contains custom prometheus metrics and registry factories. |
pkg/version
Package version is used as a place, where application version defined.
|
Package version is used as a place, where application version defined. |
pkg
|
|
hostsfile
Package hostsfile contains basic functions for the hosts file working.
|
Package hostsfile contains basic functions for the hosts file working. |
mikrotik
Package mikrotik contains specific for RouterOS structs and functions.
|
Package mikrotik contains specific for RouterOS structs and functions. |
Click to show internal directories.
Click to hide internal directories.