Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPort = 8910
View Source
const ESConfigFileName = "es.json"
View Source
const ESConfigPath = "esconfig"
View Source
const ESKeyFileExt = ".eskey"
View Source
const ESVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ESConfig ¶
type ESConfig struct { Port int `json:"port"` //服务端口,默认端口8910 Name string `json:"name"` //系统中的nodename用于区分不同服务 Key string `json:"key"` //链接密钥,用于链接到整个系统中 Server string `json:"server"` //索引服务器的访问端点 //以下问索引服务配置 // 访问端点指的是一个可以公共可访问的端点,ip+端口 或者域名+端口 //IndexServer才需要访问端点,比如istest.kuaibang360.com:3456 Endpoint string `json:"endpoint"` // 访问端点 }
ESConfig 配置文件映射结构
type Request ¶
type Request struct { NodeName string // 节点名称 Path string //服务包路径 Method string //服务名 Parameters [][]byte //调用参数 }
Request 调用服务的时候发出去的数据
func (*Request) AddParameter ¶
func (*Request) SetParameters ¶
Click to show internal directories.
Click to hide internal directories.