client

package
Version: v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_TOKEN           string          = "67080fc75bb8ee4a168026e5b21bf6fc"
	CONFIGR_REF_INTERVAL int             = 60
	FAILMODE             client.FailMode = client.Failtry
	SERVER_API           string          = "/json/serverlist"
	TESTMODE             bool            = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	ServerNetLoc string         // 服务端地址 IP:PORT
	Client       client.XClient // RPC 客户端
	ServerList   []string       // 存活服务端集群列表
	PutData      dataInfo       // 要传输的数据
	Reply        int            // RPC Server 响应结果
	Mutex        *sync.Mutex    // 安全操作锁
	IsDebug      bool           // 是否开启debug模式,debug模式打印传输内容和报错信息
	// contains filtered or unexported fields
}

Agent agent客户端结构

func (*Agent) Run

func (a *Agent) Run()

Run 启动agent

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL