Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
AdminServer represents the HTTP admin interface
func NewAdminServer ¶
func NewAdminServer(cfg *config.Config, sup SupervisorInterface) *AdminServer
NewAdminServer creates a new admin server
func (*AdminServer) BroadcastLog ¶
func (a *AdminServer) BroadcastLog(service, message string)
BroadcastLog broadcasts a log message to all connected clients
type ClientInfo ¶
ClientInfo represents information about a connected client
type SupervisorInterface ¶
type SupervisorInterface interface {
GetServiceStatus(name string) (*supervisor.ServiceInfo, error)
GetAllServiceStatuses() map[string]*supervisor.ServiceInfo
StartService(name string) error
StopService(name string) error
RestartService(name string) error
EnableCronJob(name string) error
DisableCronJob(name string) error
}
SupervisorInterface defines the methods required by the AdminServer
Click to show internal directories.
Click to hide internal directories.