Giter Site home page Giter Site logo

hikoqiu / go-eureka-client Goto Github PK

View Code? Open in Web Editor NEW
26.0 2.0 9.0 332 KB

Non-offical implementation of Spring Cloud Eureka client. Eureka server api, refer to: https://github.com/Netflix/eureka/wiki/Eureka-REST-operations

License: Apache License 2.0

Makefile 0.57% Go 99.43%
eureka-client spring-cloud

go-eureka-client's People

Contributors

hikoqiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-eureka-client's Issues

os.Exit(0) When execute handleSignal

env

github.com/HikoQiu/go-eureka-client/eureka v0.0.0-20200428035747-ac92e3f91f92

Background

  1. I have a go application, start an HTTPServer, and set eureka client to Run()
  2. handle signal to graceful shutdown HTTPServer

What's Unexpected

application exit when eureka client execute handleSignal
the application does not have a chance to execute graceful shutdown for HTTPServer

what's Expected

both graceful exit codes can be executed.

Why

Discussion

what if we remove that line: os.Exit(0)

Is it possible to use with Vault?

How can I authenticate myself with Vault's token to the config server?

It requires me to add an HTTP header when making requests, but I have no idea where to add the header.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.