Coder Social home page Coder Social logo

Comments (8)

shubhamranjan avatar shubhamranjan commented on July 24, 2024 1

I will check how they have implemented and get back on this one. Cannot see an grpc parameter provided in their contract.

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

The grpc api currently doesn't have a parameter exposed. Hence, cannot add this feature atm. Will raise an issue and see what response do I get from them.

Ref: https://etcd.io/docs/v3.3.12/dev-guide/api_reference_v3/#service-cluster-etcdserveretcdserverpbrpcproto

from dotnet-etcd.

alenjursic1997 avatar alenjursic1997 commented on July 24, 2024

Hi,
This is the way to register member in ETCD as described here: https://etcd.io/docs/v3.4.0/dev-internal/discovery_protocol/

Example:
curl -X PUT http://example.com/v2/keys/_etcd/registry/${UUID}/${member_id}?prevExist=false -d value="${member_name}=${member_peer_url_1}&${member_name}=${member_peer_url_2}"

As you see, there is a possibility to add "member_name".
Is it posible to do this with your library like that:

var addReq = new MemberAddRequest();
addReq.PeerURLs.Add("testName=http://localhost:1234"); //just example
MemberAddResponse res = await _client.MemberAddAsync(addReq);

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

Thats the v2 api which supports the rest protocol only. gRPC is supported with v3+ (which this library is built on top of) and the grpc contract of etcd server doesn't have this parameter.

Thanks for the reference though, I will use it to raise an issue there.

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

addReq.PeerURLs.Add("testName=http://localhost:1234"); //just example

This format doesn't seem to be supported as of now.

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

Raised an issue: etcd-io/etcd#12031

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

@alenjursic1997 Maybe you can explain your use case on the raised issue to help them understand better.

from dotnet-etcd.

shubhamranjan avatar shubhamranjan commented on July 24, 2024

Closing as no support in etcd grpc api.

from dotnet-etcd.

Related Issues (20)

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.