V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
zhengji

基于 etcd 实现服务注册与发现的 Go 库

  •  1
     
  •   zhengji ·
    zheng-ji · Aug 24, 2019 · 3016 views
    This topic created in 2442 days ago, the information mentioned may be changed or developed.

    Introduction

    Build Status

    Implement service discovery based on etcd By Go

    Quick Start Etcd

    $ wget https://github.com/coreos/etcd/releases/download/v3.1.5/etcd-v3.1.5-linux-amd64.tar.gz
    $ tar xzvf etcd-v3.1.5-linux-amd64.tar.gz
    $ mv etcd-v3.1.5-linux-amd64 /opt/etcd
    
    $ go get github.com/mattn/goreman
    $ goreman -f ProcFile (本仓库提供) start
    

    Quick-start

    go get github.com/zheng-ji/discover-etcd
    

    Example

    1 replies    2019-08-24 14:32:06 +08:00
    zhengji
        1
    zhengji  
    OP
       Aug 24, 2019
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   950 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:40 · PVG 02:40 · LAX 11:40 · JFK 14:40
    ♥ Do have faith in what you're doing.