2017-10-31 09:25:44 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2017-11-01 03:10:39 +00:00
|
|
|
"io"
|
2017-10-31 09:25:44 +00:00
|
|
|
"time"
|
|
|
|
|
|
|
|
"git.loafle.net/commons_go/rpc"
|
|
|
|
"git.loafle.net/commons_go/rpc/protocol"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ClientHandler interface {
|
2017-11-01 03:10:39 +00:00
|
|
|
Connect() (io.ReadWriteCloser, error)
|
2017-10-31 09:25:44 +00:00
|
|
|
GetCodec() protocol.ClientCodec
|
2017-11-01 03:10:39 +00:00
|
|
|
|
2017-10-31 09:25:44 +00:00
|
|
|
GetRPCRegistry() rpc.Registry
|
|
|
|
GetRequestTimeout() time.Duration
|
|
|
|
GetPendingRequests() int
|
|
|
|
|
|
|
|
GetRequestID() interface{}
|
|
|
|
Validate()
|
|
|
|
}
|