Durable-but-not-reliable remote message passing for go.
Ghost is a small library that lets you create long-lived client/servers with the following properties:
-
Automatic, transparrent connection resurrection
-
Messages can be any go structure, not just strings or bytes. Encoding and decoding is done transparently
-
Messages only travel from client to server. To go the other way a listen must be created on the client and a response message is sent to that. How you route messages is up to you.
Ghost is useful where you have a cluster of processes that you want to have long-running communication connections to each other on.
go get github.com/mediocregopher/ghost
or
- loc: https://github.com/mediocregopher/ghost.git
type: git
ref: v0.3.1
path: github.com/mediocregopher/ghostThen when you want to use it import github.com/mediocregopher/ghost
Check out docs for externally available methods. Also check out the example code to see actual usage.