Documentation
¶
Index ¶
- func Health(w http.ResponseWriter, r *http.Request)
- func Index(w http.ResponseWriter, r *http.Request)
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter() *mux.Router
- func RestartUnit(w http.ResponseWriter, r *http.Request)
- func StartUnit(w http.ResponseWriter, r *http.Request)
- func StopUnit(w http.ResponseWriter, r *http.Request)
- type Route
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Health ¶
func Health(w http.ResponseWriter, r *http.Request)
Health function check whether systemd unit is running
func Index ¶
func Index(w http.ResponseWriter, r *http.Request)
Index function for serving API index
func RestartUnit ¶
func RestartUnit(w http.ResponseWriter, r *http.Request)
RestartUnit function restarts systemd service which is configured in conf.yaml
Types ¶
Click to show internal directories.
Click to hide internal directories.