tangs b030ce89ca openbilibili 6 years ago
..
BUILD b030ce89ca openbilibili 6 years ago
CHANGELOG.md b030ce89ca openbilibili 6 years ago
README.md b030ce89ca openbilibili 6 years ago
helper.go b030ce89ca openbilibili 6 years ago

README.md

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)
}