rpc/protocol/registry_codec.go

16 lines
503 B
Go
Raw Permalink Normal View History

2017-10-31 09:25:44 +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.
2017-11-03 06:35:43 +00:00
ReadParams(args []interface{}) error
2017-11-09 08:38:02 +00:00
Params() ([]string, error)
2018-03-22 16:37:28 +00:00
HasResponse() bool
2017-10-31 09:25:44 +00:00
}