3 Star 2 Fork 1

Gitee 极速下载 / codis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/CodisLabs/codis
克隆/下载
proxy.go 672 Bytes
一键复制 编辑 原始数据 按行查看 历史
spinlock 提交于 2016-11-29 22:08 . proxy: save jodis_path in proxy's model
// Copyright 2016 CodisLabs. All Rights Reserved.
// Licensed under the MIT (MIT-LICENSE.txt) license.
package models
type Proxy struct {
Id int `json:"id,omitempty"`
Token string `json:"token"`
StartTime string `json:"start_time"`
AdminAddr string `json:"admin_addr"`
ProtoType string `json:"proto_type"`
ProxyAddr string `json:"proxy_addr"`
JodisPath string `json:"jodis_path,omitempty"`
ProductName string `json:"product_name"`
Pid int `json:"pid"`
Pwd string `json:"pwd"`
Sys string `json:"sys"`
Hostname string `json:"hostname"`
DataCenter string `json:"datacenter"`
}
func (p *Proxy) Encode() []byte {
return jsonEncode(p)
}
1
https://gitee.com/mirrors/codis.git
git@gitee.com:mirrors/codis.git
mirrors
codis
codis
de1ad026e329

搜索帮助

53164aa7 5694891 3bd8fe86 5694891