Documentation ¶
Index ¶
- Variables
- type Forward
- func (Forward) Download(stream grpc_forward.Forward_DownloadServer) (e error)
- func (Forward) Ping(ctx context.Context, request *grpc_app.PingRequest) (reply *grpc_app.PingReply, e error)
- func (Forward) Search(ctx context.Context, request *grpc_app.SearchRequest) (reply *grpc_app.SearchReply, e error)
- type Service
- func (Service) App(ctx context.Context, request *grpc_service.AppRequest) (reply *grpc_service.AppReply, e error)
- func (Service) Exit(ctx context.Context, request *grpc_service.ExitRequest) (reply *grpc_service.ExitReply, e error)
- func (Service) Find(ctx context.Context, request *grpc_service.FindRequest) (reply *grpc_service.FindReply, e error)
- func (Service) FindEx(ctx context.Context, request *grpc_service.FindExRequest) (reply *grpc_service.FindExReply, e error)
- func (s Service) Install(stream grpc_service.Service_InstallServer) (e error)
- func (Service) InstallTar(stream grpc_service.Service_InstallTarServer) (e error)
- func (Service) Keys(ctx context.Context, request *grpc_service.KeysRequest) (reply *grpc_service.KeysReply, e error)
- func (Service) List(ctx context.Context, request *grpc_service.ListRequest) (reply *grpc_service.ListReply, e error)
- func (Service) Mode(ctx context.Context, request *grpc_service.ModeRequest) (reply *grpc_service.ModeReply, e error)
- func (Service) Process(ctx context.Context, request *grpc_service.ProcessRequest) (reply *grpc_service.ProcessReply, e error)
- func (Service) Remove(stream grpc_service.Service_RemoveServer) (e error)
- func (Service) Show(ctx context.Context, request *grpc_service.ShowRequest) (reply *grpc_service.ShowReply, e error)
- func (s Service) Update(stream grpc_service.Service_UpdateServer) (e error)
- func (Service) UpdateList(ctx context.Context, request *grpc_service.UpdateListRequest) (reply *grpc_service.UpdateListReply, e error)
- func (Service) UpdateTar(stream grpc_service.Service_UpdateTarServer) (e error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SignalExit chan interface{}
SignalExit .
Functions ¶
This section is empty.
Types ¶
type Forward ¶
type Forward struct { }
Forward 將 service 客戶端 向 service 服務器的 請求 轉發 到 server
func (Forward) Download ¶
func (Forward) Download(stream grpc_forward.Forward_DownloadServer) (e error)
Download 下載 app
func (Forward) Ping ¶ added in v0.1.27
func (Forward) Ping(ctx context.Context, request *grpc_app.PingRequest) (reply *grpc_app.PingReply, e error)
Ping 測試 服務器 響應 速度
func (Forward) Search ¶
func (Forward) Search(ctx context.Context, request *grpc_app.SearchRequest) (reply *grpc_app.SearchReply, e error)
Search 查找 可安裝的 套件
type Service ¶
type Service struct { }
Service 提供 客戶端 套件管理
func (Service) App ¶
func (Service) App(ctx context.Context, request *grpc_service.AppRequest) (reply *grpc_service.AppReply, e error)
App 運行/停止 套件
func (Service) Exit ¶
func (Service) Exit(ctx context.Context, request *grpc_service.ExitRequest) (reply *grpc_service.ExitReply, e error)
Exit 退出服務
func (Service) Find ¶
func (Service) Find(ctx context.Context, request *grpc_service.FindRequest) (reply *grpc_service.FindReply, e error)
Find 查找 套件
func (Service) FindEx ¶
func (Service) FindEx(ctx context.Context, request *grpc_service.FindExRequest) (reply *grpc_service.FindExReply, e error)
FindEx 查找 服務器 存在的 套件 並且 包含 全部 信息
func (Service) Install ¶
func (s Service) Install(stream grpc_service.Service_InstallServer) (e error)
Install 安裝 套件
func (Service) InstallTar ¶
func (Service) InstallTar(stream grpc_service.Service_InstallTarServer) (e error)
InstallTar 從 tar 包 安裝 套件
func (Service) Keys ¶
func (Service) Keys(ctx context.Context, request *grpc_service.KeysRequest) (reply *grpc_service.KeysReply, e error)
Keys 返回 網卡 指紋
func (Service) List ¶
func (Service) List(ctx context.Context, request *grpc_service.ListRequest) (reply *grpc_service.ListReply, e error)
List 列出 安裝的 套件
func (Service) Mode ¶
func (Service) Mode(ctx context.Context, request *grpc_service.ModeRequest) (reply *grpc_service.ModeReply, e error)
Mode 修改 運行/更新 模式
func (Service) Process ¶ added in v0.1.8
func (Service) Process(ctx context.Context, request *grpc_service.ProcessRequest) (reply *grpc_service.ProcessReply, e error)
Process 返回 套件的 進程 啓動 信息
func (Service) Remove ¶
func (Service) Remove(stream grpc_service.Service_RemoveServer) (e error)
Remove 刪除 套件 版本
func (Service) Show ¶
func (Service) Show(ctx context.Context, request *grpc_service.ShowRequest) (reply *grpc_service.ShowReply, e error)
Show 列出 安裝的 套件
func (Service) Update ¶
func (s Service) Update(stream grpc_service.Service_UpdateServer) (e error)
Update 更新 套件
func (Service) UpdateList ¶
func (Service) UpdateList(ctx context.Context, request *grpc_service.UpdateListRequest) (reply *grpc_service.UpdateListReply, e error)
UpdateList 返回所有 設置了自動更新的 套件列表
func (Service) UpdateTar ¶
func (Service) UpdateTar(stream grpc_service.Service_UpdateTarServer) (e error)
UpdateTar 從頭 tar 包 更新 套件
Click to show internal directories.
Click to hide internal directories.