Giter Site home page Giter Site logo

yagnats's Introduction

Build Status

Yet Another Go NATS Client

A simple client for NATS written in Go.

Basic usage:

client := yagnats.NewClient()

err := client.Connect(&yagnats.ConnectionInfo{
		Addr:     "127.0.0.1:4222",
		Username: "user",
		Password: "pass",
})
if err != nil {
  panic("Wrong auth or something.")
}

client.Subscribe("some.subject", func(msg *Message) {
  fmt.Printf("Got message: %s\n", msg.Payload)
})

client.Publish("some.subject", []byte("Sup son?"))

yagnats's People

Contributors

vito avatar emalm avatar onsi avatar zrob avatar julz avatar xoebus avatar crhino avatar luan avatar garfieldlinux avatar oppegard avatar sykesm avatar nota-ja avatar thansmann avatar youngm avatar

Watchers

Gisle Aas avatar Phil Whelan avatar Eric Promislow avatar Troy Topnik avatar Chris Olstrom avatar James Cloos avatar chris grzegorczyk avatar Calin Miclaus avatar Ravi avatar  avatar  avatar Brent Smithurst avatar  avatar Arpita Sati avatar  avatar Prabal Sharma avatar Mark Yen avatar Marc Nozell avatar  avatar  avatar  avatar TW-Dev-WuTao avatar  avatar  avatar  avatar Nino K avatar  avatar  avatar Manpreet Singh avatar Maria Zhao avatar  avatar George Hicks avatar Mehiar Dabbagh avatar  avatar  avatar Sitikantha Prasad Mohanty avatar  avatar  avatar

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.