rpc/protocol/registry_codec.go
crusader 8e43174376 ing
2017-10-31 18:25:44 +09:00

14 lines
459 B
Go

package protocol
// ----------------------------------------------------------------------------
// Codec
// ----------------------------------------------------------------------------
// RegistryCodec creates a RegistryCodecRequest to process each request.
type RegistryCodec interface {
// Reads the request and returns the RPC method name.
Method() string
// Reads the request filling the RPC method args.
ReadParams(interface{}) error
Complete()
}