Documentation
¶
Index ¶
- func InstallService(logger *slog.Logger, cfg *config.Config, cfgPath string) error
- func IsInstalled() bool
- func NewProgram(logger *slog.Logger, cfg *config.Config, cfgPath string) *program
- func RunAsService(logger *slog.Logger, cfg *config.Config, cfgPath string) error
- func ServiceConfig() *service.Config
- func StartService(logger *slog.Logger, cfg *config.Config, cfgPath string) error
- func StopService(logger *slog.Logger, cfg *config.Config, cfgPath string) error
- func UninstallService(logger *slog.Logger, cfg *config.Config, cfgPath string) error
- type Daemon
- func (d *Daemon) GetConfig() api.ConfigSnapshot
- func (d *Daemon) GetSession(id string) (*api.SessionDetailResponse, error)
- func (d *Daemon) GetSessions() []api.SessionInfo
- func (d *Daemon) KillSession(ctx context.Context, sessionID string) error
- func (d *Daemon) ResumeSession(ctx context.Context, sessionID string) error
- func (d *Daemon) Run() error
- func (d *Daemon) Shutdown()
- type History
- type HistoryEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallService ¶
func IsInstalled ¶
func IsInstalled() bool
func RunAsService ¶
func ServiceConfig ¶
func StartService ¶
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) GetConfig ¶
func (d *Daemon) GetConfig() api.ConfigSnapshot
func (*Daemon) GetSession ¶
func (d *Daemon) GetSession(id string) (*api.SessionDetailResponse, error)
func (*Daemon) GetSessions ¶
func (d *Daemon) GetSessions() []api.SessionInfo
func (*Daemon) KillSession ¶
func (*Daemon) ResumeSession ¶
Click to show internal directories.
Click to hide internal directories.