package
Version:
v0.0.0-...-83adff0
Opens a new window with list of versions in this module.
Published: Jul 6, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
livezk
直播 zookeeper 注册工具
usage
import (
"go-common/conf"
"go-common/business/warden/livezk"
)
func main() {
config := &conf.Zookeeper{/*...*/}
addr := ":5000" // grpc 监听的端口
appID := "test.test" // app_id
// 注册失败每隔1分钟会自动重试
live.DoRegister(config, addr, appID)
}
Documentation
¶
Register self grpc service to live zookeeper
Source Files
¶
Click to show internal directories.
Click to hide internal directories.