remotes

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rpc_System_System      = "ServiceSystem"
	Rpc_System_Method_Ping = Rpc_System_System + ".Ping"
)
View Source
const (
	Rpc_Task_Service          = "ServiceTask"
	Rpc_Task_Method_Publish   = Rpc_Task_Service + ".Publish"
	Rpc_Task_Method_GetStatus = Rpc_Task_Service + ".Status"
	Rpc_Task_Method_Delete    = Rpc_Task_Service + ".Delete"
)

Variables

View Source
var Conn_Timeout = beego.AppConfig.DefaultInt64("agent.tls_timeout", 1000)
View Source
var System = SystemRemote{}
View Source
var Task = TaskRemote{}

Functions

This section is empty.

Types

type BaseRemote

type BaseRemote struct {
}

func (*BaseRemote) Call

func (b *BaseRemote) Call(ip string, port string, token string, method string, args map[string]interface{}, timeout int64) (reply string, err error)

type SystemRemote

type SystemRemote struct {
	BaseRemote
}

func (*SystemRemote) Ping

func (this *SystemRemote) Ping(ip string, port string, token string, args map[string]interface{}) (res map[string]string, err error)

ping 检测是否联通

type TaskRemote

type TaskRemote struct {
	BaseRemote
}

func (*TaskRemote) GetResults

func (this *TaskRemote) GetResults(ip string, port string, token string, args map[string]interface{}) (bool, error)

获取节点执行结果

func (*TaskRemote) Publish

func (this *TaskRemote) Publish(ip string, port string, token string, args map[string]interface{}) error

发布

Jump to

Keyboard shortcuts

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