rpc-go/protocol/registry_codec.go

16 lines
503 B
Go
Raw Normal View History

2018-04-03 08:58:26 +00:00
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)
HasResponse() bool
}