summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/hashicorp/go-msgpack/msgpack.org.md
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-16 05:37:14 -0700
committerJoram Wilander <jwawilander@gmail.com>2018-04-16 08:37:14 -0400
commit6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch)
tree3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/github.com/hashicorp/go-msgpack/msgpack.org.md
parentbf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff)
downloadchat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/github.com/hashicorp/go-msgpack/msgpack.org.md')
-rw-r--r--vendor/github.com/hashicorp/go-msgpack/msgpack.org.md47
1 files changed, 0 insertions, 47 deletions
diff --git a/vendor/github.com/hashicorp/go-msgpack/msgpack.org.md b/vendor/github.com/hashicorp/go-msgpack/msgpack.org.md
deleted file mode 100644
index d5ebe71d6..000000000
--- a/vendor/github.com/hashicorp/go-msgpack/msgpack.org.md
+++ /dev/null
@@ -1,47 +0,0 @@
-**MessagePack and [Binc](http://github.com/ugorji/binc) Codec for [Go](http://golang.org) Language.**
-
-*A High Performance, Feature-Rich, Idiomatic encode/decode and rpc library*.
-
-To install:
-
- go get github.com/ugorji/go/codec
-
-Source: [http://github.com/ugorji/go]
-Online documentation: [http://godoc.org/github.com/ugorji/go/codec]
-
-Typical usage:
-
-```go
- // create and use decoder/encoder
- var (
- v interface{} // value to decode/encode into
- r io.Reader
- w io.Writer
- b []byte
- mh codec.MsgpackHandle
- )
-
- dec = codec.NewDecoder(r, &mh)
- dec = codec.NewDecoderBytes(b, &mh)
- err = dec.Decode(&v)
-
- enc = codec.NewEncoder(w, &mh)
- enc = codec.NewEncoderBytes(&b, &mh)
- err = enc.Encode(v)
-
- //RPC Server
- go func() {
- for {
- conn, err := listener.Accept()
- rpcCodec := codec.GoRpc.ServerCodec(conn, h)
- //OR rpcCodec := codec.MsgpackSpecRpc.ServerCodec(conn, h)
- rpc.ServeCodec(rpcCodec)
- }
- }()
-
- //RPC Communication (client side)
- conn, err = net.Dial("tcp", "localhost:5555")
- rpcCodec := codec.GoRpc.ClientCodec(conn, h)
- //OR rpcCodec := codec.MsgpackSpecRpc.ClientCodec(conn, h)
- client := rpc.NewClientWithCodec(rpcCodec)
-```