service

package
v0.0.0-...-fc70b83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

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 CServiceInstallInput struct {
	g.Meta `name:"install" brief:"安装开机启动服务" usage:"开机启动服务"`
}

type CServiceInstallOutput

type CServiceInstallOutput struct{}

type CServiceRestartInput

type CServiceRestartInput struct {
	g.Meta `name:"restart" brief:"重启服务" usage:"开机启动服务"`
}

type CServiceRestartOutput

type CServiceRestartOutput struct{}

type CServiceStartInput

type CServiceStartInput struct {
	g.Meta `name:"start" brief:"启动服务" usage:"开机启动服务"`
}

type CServiceStartOutput

type CServiceStartOutput struct{}

type CServiceStatusInput

type CServiceStatusInput struct {
	g.Meta `name:"status" brief:"查看服务状态" usage:"开机启动服务"`
}

type CServiceStatusOutput

type CServiceStatusOutput struct{}

type CServiceStopInput

type CServiceStopInput struct {
	g.Meta `name:"stop" brief:"停止服务" usage:"开机启动服务"`
}

type CServiceStopOutput

type CServiceStopOutput struct{}

type CServiceUninstallInput

type CServiceUninstallInput struct {
	g.Meta `name:"uninstall" brief:"卸载自定义全局命令" usage:"开机启动服务"`
}

type CServiceUninstallOutput

type CServiceUninstallOutput struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL