Documentation
¶
Overview ¶
Package supervisor 管理本项目的服务进程、控制通道和监听资源。
Index ¶
- func Attach(ctx context.Context, socket string, specs map[string]Spec, output io.Writer) (bool, error)
- func ConfigureHorizon()
- func Frontend(ctx context.Context, spec Spec) error
- func Parse(selection, action string) ([]string, error)
- func Ready() error
- func Run(ctx context.Context, socket string, specs map[string]Spec, names []string, ...) error
- func Terminal(ctx context.Context, socket string, launcher Spec, specs map[string]Spec, ...) (result error)
- func Watch(ctx context.Context, directory, runtime string, reload func(string) error) error
- func WatchParent(ctx context.Context, shutdown func(error)) (func(), error)
- type Response
- type Spec
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶ added in v0.1.1
func Attach(ctx context.Context, socket string, specs map[string]Spec, output io.Writer) (bool, error)
Attach transfers local terminal ownership after the requested services are ready. Closing the current owner stops the manager; closing a replaced owner has no effect.
func ConfigureHorizon ¶
func ConfigureHorizon()
ConfigureHorizon 通过公开扩展接口限定本代服务的停机范围,队列和监控数据仍由原 Store 管理。
func Run ¶
func Run(ctx context.Context, socket string, specs map[string]Spec, names []string, watch bool) error
Run 持有排他锁和本地控制入口,直到收到停止命令或应用退出信号。
func Terminal ¶ added in v0.1.1
func Terminal(ctx context.Context, socket string, launcher Spec, specs map[string]Spec, output io.Writer) (result error)
Terminal starts an independent local manager when absent, then owns its control connection.
Types ¶
type Response ¶
Click to show internal directories.
Click to hide internal directories.