Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(con *repl.Console) []*cobra.Command

func Register

func Register(con *repl.Console)

func RegisterServiceCreateFunc

func RegisterServiceCreateFunc(con *repl.Console)

RegisterServiceCreateFunc 注册 ServiceCreateCmd 到 Console

func RegisterServiceDeleteFunc

func RegisterServiceDeleteFunc(con *repl.Console)

func RegisterServiceListFunc

func RegisterServiceListFunc(con *repl.Console)

func RegisterServiceQueryFunc

func RegisterServiceQueryFunc(con *repl.Console)

func RegisterServiceStartFunc

func RegisterServiceStartFunc(con *repl.Console)

RegisterServiceStartFunc 注册 ServiceStartCmd 到 Console

func RegisterServiceStopFunc

func RegisterServiceStopFunc(con *repl.Console)

func ServiceCreate

func ServiceCreate(rpc clientrpc.MaliceRPCClient, session *core.Session, name, displayName, executablePath string, startType, errorControl, accountName string) (*clientpb.Task, error)

func ServiceCreateCmd

func ServiceCreateCmd(cmd *cobra.Command, con *repl.Console) error

ServiceCreateCmd creates a new service with the specified configuration.

func ServiceDelete

func ServiceDelete(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)

func ServiceDeleteCmd

func ServiceDeleteCmd(cmd *cobra.Command, con *repl.Console) error

ServiceDeleteCmd deletes a specified service by name.

func ServiceList

func ServiceList(rpc clientrpc.MaliceRPCClient, session *core.Session) (*clientpb.Task, error)

func ServiceListCmd

func ServiceListCmd(cmd *cobra.Command, con *repl.Console) error

func ServiceQuery

func ServiceQuery(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)

func ServiceQueryCmd

func ServiceQueryCmd(cmd *cobra.Command, con *repl.Console) error

ServiceQueryCmd queries the status of an existing service by its name.

func ServiceStart

func ServiceStart(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)

ServiceStart 通过 gRPC 调用启动服务

func ServiceStartCmd

func ServiceStartCmd(cmd *cobra.Command, con *repl.Console) error

ServiceStartCmd starts an existing service by its name.

func ServiceStop

func ServiceStop(rpc clientrpc.MaliceRPCClient, session *core.Session, name string) (*clientpb.Task, error)

func ServiceStopCmd

func ServiceStopCmd(cmd *cobra.Command, con *repl.Console) error

ServiceStopCmd stops an existing service by its name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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