import "github.com/vmihailenco/msgpack" 有很多限制
Created
July 26, 2014 22:56
-
-
Save changtimwu/0f8fbe78e9a11dbec464 to your computer and use it in GitHub Desktop.
msgpack codec study
goRpcCodec
implements both rpc.ServerCodec
and rpc.ClientCodec
so the same instance can be passed to both rpc.NewClientWithCodec(cc)
and rpc.NewServer().ServerCodec
msgpackSpecRpcCodec
is the same story.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
net/rpc
providesrpcCodec
is fundamental struct. It implementsServerCodec
andClientCodec
interfaces.ServerCodec
andClientCodec
interface likegoRpcCodec
inheritsrpcCodec
(has-a
relation) and implementsBINC
specific methodsmsgpackSpecRpcCodec
inheritsrpcCodec
(viahas-a
) and implementsmsgpack
specific methods