Documentation ¶
Overview ¶
Package service @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License @title 开机启动服务 service 开机启动服务 install 安装开机启动服务 uninstall 卸载自定义全局命令 start 启动服务 stop 停止服务 restart 重启服务 status 查看服务状态
Package service @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License @title 开机启动服务操作
Package service @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License @title 开机启动服务操作
Package service @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License @title 开机启动服务操作
Package service @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License @title 开机启动服务操作
Package service @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License @title 开机启动服务操作
Package service @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 central CLI @Author linngc @License @title 开机启动服务操作
Index ¶
- type CService
- func (c *CService) Install(ctx context.Context, in CServiceInstallInput) (out *CServiceInstallOutput, err error)
- func (c *CService) Restart(ctx context.Context, in CServiceRestartInput) (out *CServiceRestartOutput, err error)
- func (c *CService) Start(ctx context.Context, in CServiceStartInput) (out *CServiceStartOutput, err error)
- func (c *CService) Status(ctx context.Context, in CServiceStatusInput) (out *CServiceStatusOutput, err error)
- func (c *CService) Stop(ctx context.Context, in CServiceStopInput) (out *CServiceStopOutput, err error)
- func (c *CService) Uninstall(ctx context.Context, in CServiceUninstallInput) (out *CServiceUninstallOutput, err error)
- type CServiceInstallInput
- type CServiceInstallOutput
- type CServiceRestartInput
- type CServiceRestartOutput
- type CServiceStartInput
- type CServiceStartOutput
- type CServiceStatusInput
- type CServiceStatusOutput
- type CServiceStopInput
- type CServiceStopOutput
- type CServiceUninstallInput
- type CServiceUninstallOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CService ¶
type CService struct {
g.Meta `name:"service" brief:"{cServiceBrief}" usage:"{cServiceUsage}" eg:"{cServiceEg}"`
}
func (*CService) Install ¶
func (c *CService) Install(ctx context.Context, in CServiceInstallInput) (out *CServiceInstallOutput, err error)
func (*CService) Restart ¶
func (c *CService) Restart(ctx context.Context, in CServiceRestartInput) (out *CServiceRestartOutput, err error)
func (*CService) Start ¶
func (c *CService) Start(ctx context.Context, in CServiceStartInput) (out *CServiceStartOutput, err error)
func (*CService) Status ¶
func (c *CService) Status(ctx context.Context, in CServiceStatusInput) (out *CServiceStatusOutput, err error)
func (*CService) Stop ¶
func (c *CService) Stop(ctx context.Context, in CServiceStopInput) (out *CServiceStopOutput, err error)
func (*CService) Uninstall ¶
func (c *CService) Uninstall(ctx context.Context, in CServiceUninstallInput) (out *CServiceUninstallOutput, err error)
type CServiceInstallInput ¶
type CServiceInstallOutput ¶
type CServiceInstallOutput struct{}
type CServiceRestartInput ¶
type CServiceRestartOutput ¶
type CServiceRestartOutput struct{}
type CServiceStartInput ¶
type CServiceStartOutput ¶
type CServiceStartOutput struct{}
type CServiceStatusInput ¶
type CServiceStatusOutput ¶
type CServiceStatusOutput struct{}
type CServiceStopInput ¶
type CServiceStopOutput ¶
type CServiceStopOutput struct{}
type CServiceUninstallInput ¶
type CServiceUninstallOutput ¶
type CServiceUninstallOutput struct{}