Documentation
¶
Index ¶
- func GetSvcDb(logger *zerolog.Logger) (*db.Storage, error)
- func IsDaemonRunning(port int) (bool, error)
- func NewHttpClient() *http.Client
- func SigRun(logger *zerolog.Logger, subscribers []chan os.Signal, done chan string, ...)
- func StopProcess(pid int) error
- type Daemon
- type Server
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDaemonRunning ¶
func NewHttpClient ¶
func SigRun ¶
func SigRun(logger *zerolog.Logger, subscribers []chan os.Signal, done chan string, server *http.Server)
Run catches and handles signals
func StopProcess ¶
Types ¶
type Daemon ¶
func (*Daemon) KillDaemon ¶
type StatusResponse ¶
type StatusResponse struct {
Status bool `json:"status"`
Version string `json:"version"`
Commit string `json:"commit"`
}
func GetDaemonStatus ¶
func GetDaemonStatus(port int) (*StatusResponse, error)
Click to show internal directories.
Click to hide internal directories.