rpc/protocol/registry_codec.go
crusader 2286a5021e ing
2017-11-26 19:15:51 +09:00

15 lines
491 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(args []interface{}) error
Params() ([]string, error)
Close()
}