Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDaemonCmd ¶
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) GetServerStatus ¶
func (d *Daemon) GetServerStatus() ServerStatus
func (*Daemon) GetStatus ¶
GetStatus returns the status of the daemon. The relative route is /api/v1/status.
func (*Daemon) ListenSignal ¶
func (d *Daemon) ListenSignal()
type DaemonStatus ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetRealState ¶
func (*Server) GetStatus ¶
func (s *Server) GetStatus() (res ServerStatus)
GetStatus get status of obshell server via unix socket
func (*Server) IsProcRunning ¶
type ServerConfig ¶
type ServerStatus ¶
type ServerStatus struct { Status http.AgentStatus Socket string `json:"socket"` EndAt int64 `json:"endAt"` }
Click to show internal directories.
Click to hide internal directories.