GithubHelp home page GithubHelp logo

make nats.Conn as an interface about nats.go HOT 3 CLOSED

nats-io avatar nats-io commented on July 29, 2024
make nats.Conn as an interface

from nats.go.

Comments (3)

derekcollison avatar derekcollison commented on July 29, 2024

What type of wrapping are you trying to do? Why would not embedding a nats.Conn or a nats.EncodedConn work in this instance similar to how I have done it? I agree though they should be an interface.

from nats.go.

hsinhoyeh avatar hsinhoyeh commented on July 29, 2024

At the beginning, I want to wrap nats.Conn and make some stats on it.
And then I found that you have provided Stats in nats.Conn, so I can temporarily use it for now.
For a long term consideration, I still want to have such interface which makes the wrap easier.
How do you think?

from nats.go.

derekcollison avatar derekcollison commented on July 29, 2024

It is definitely something I am considering, thanks for the feedback. Let
me know if Stats does not provide you what you need.

On Mon, Jun 16, 2014 at 10:33 AM, hsinhoyeh [email protected]
wrote:

At the beginning, I want to wrap nats.Conn and make some stats on it.
And then I found that you have provided Stats in nats.Conn, so I can
temporarily use it for now.
For a long term consideration, I still want to have such interface which
makes the wrap easier.
How do you think?


Reply to this email directly or view it on GitHub
#21 (comment).

from nats.go.

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.