package
1.0.4
Repository: https://github.com/tal-tech/xtools.git
Documentation: pkg.go.dev

# README

conf.ini 配置

[SD] addrs=10.99.2.162:12181 //配置中心地址列表 basePath=/xes_science //根目录 testingAddrs=10.10.135.111 //灰度测试机ip列表

example:

baseid := serviceUtils.BaseId{ StuID:1, StuCouID:1, ClassID:1, TeamID:1, LiveID:1, } saveEnergyArgs := &protocol.SaveH5EnergyArgs{ BaseId: baseid, TestId: 1, SrcType: 1, Gold: 1, IsSubmit: 1, WrongTestNum: 1, RightTestNum: 1, } saveEnergyReply := &protocol.CommonReply{}

err := rpcxutil.Call(context.Background(),"energygold","SaveH5EnergyAndGold",saveEnergyArgs,saveEnergyReply)
if err != nil{
	fmt.Println("call err:",err)
	return
}
fmt.Println(saveEnergyReply)

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
注册中心异常.
注册中心正常.
------上下文key标识超时时间, 值为time.duration 字符串,如:1s 配置文件:rpcCallTimeout 为全局, 为单独请求设置.

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author