tool

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ToolService

type ToolService struct {
	v1.UnimplementedToolServer
	// contains filtered or unexported fields
}

ToolService tool service implementation

func NewToolService

func NewToolService(uc *tool.ToolUseCase) *ToolService

NewToolService create tool service

func (*ToolService) GetSystemLog

func (s *ToolService) GetSystemLog(ctx context.Context, req *v1.GetSystemLogRequest) (*v1.GetSystemLogReply, error)

GetSystemLog 获取系统日志

func (*ToolService) GetVersion

func (s *ToolService) GetVersion(ctx context.Context, req *v1.GetVersionRequest) (*v1.GetVersionReply, error)

GetVersion 获取版本信息

func (*ToolService) QueryIPLocation

QueryIPLocation 查询IP地理位置

func (*ToolService) RestartSystem

func (s *ToolService) RestartSystem(ctx context.Context, req *v1.RestartSystemRequest) (*v1.RestartSystemReply, error)

RestartSystem 重启系统

Jump to

Keyboard shortcuts

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