Skip to content
/ akira Public

Drop in nats interface, complete with mock connection for testing

License

Notifications You must be signed in to change notification settings

r3labs/akira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akira

Akira provides a complete go-nats interface with a mock connection for testing.

How to use it

You can use it like:

fc = akira.NewFakeConnector()

// Create a fake connector
xfc := fc.(*akira.FakeConnector)

// Subscribe to a specific event stream
fc.Subscribe("environment.get", func(m *nats.Msg){ println("Hello world!")})
fc.Publish("environment.get", "{...}")

// You can get a history of events accessing xfc.Events

Running Tests

make lint
make test

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

Moreover, if your pull request contains patches or features, you must include relevant unit tests.

Versioning

For transparency into our release cycle and in striving to maintain backward compatibility, this project is maintained under the Semantic Versioning guidelines.

Copyright and License

Code and documentation copyright since 2015 r3labs.io authors.

Code released under the Mozilla Public License Version 2.0.

About

Drop in nats interface, complete with mock connection for testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •