1 Star 0 Fork 0

jack/protoactor-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
node_model.go 695 Bytes
一键复制 编辑 原始数据 按行查看 历史
Roger Johansson 提交于 3年前 . enable gossip again
package automanaged
// NodeModel represents a node in the cluster
type NodeModel struct {
ID string `json:"id"`
Address string `json:"address"`
AutoManagePort int `json:"auto_manage_port"`
Port int `json:"port"`
Kinds []string `json:"kinds"`
ClusterName string `json:"cluster_name"`
}
// NewNode returns a new node for the cluster
func NewNode(clusterName string, id string, address string, port int, autoManPort int, kind []string) *NodeModel {
return &NodeModel{
ID: id,
ClusterName: clusterName,
Address: address,
Port: port,
AutoManagePort: autoManPort,
Kinds: kind,
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wujianhai/protoactor-go.git
git@gitee.com:wujianhai/protoactor-go.git
wujianhai
protoactor-go
protoactor-go
99a34e4ec9eb

搜索帮助