server

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

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

UpdateList 返回所有 設置了自動更新的 套件列表

func (Service) UpdateTar

func (Service) UpdateTar(stream grpc_service.Service_UpdateTarServer) (e error)

UpdateTar 從頭 tar 包 更新 套件

Jump to

Keyboard shortcuts

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